TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthNrCepWarstqtyBatchupdateRequest req = new AlibabaHealthNrCepWarstqtyBatchupdateRequest();
List<AlibabaHealthNrCepWarstqtyBatchupdateRequest.TopIsvStqtyLstDto> list2 = new ArrayList<AlibabaHealthNrCepWarstqtyBatchupdateRequest.TopIsvStqtyLstDto>();
AlibabaHealthNrCepWarstqtyBatchupdateRequest.TopIsvStqtyLstDto obj3 = new AlibabaHealthNrCepWarstqtyBatchupdateRequest.TopIsvStqtyLstDto();
list2.add(obj3);
obj3.setDeptCode("1001");
obj3.setGoodsCode("100019");
obj3.setGoodsQty("20");
req.setWarStqtyList(list2);
AlibabaHealthNrCepWarstqtyBatchupdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthNrCepWarstqtyBatchupdateRequest req = new AlibabaHealthNrCepWarstqtyBatchupdateRequest();
List<AlibabaHealthNrCepWarstqtyBatchupdateRequest.TopIsvStqtyLstDtoDomain> list2 = new List<AlibabaHealthNrCepWarstqtyBatchupdateRequest.TopIsvStqtyLstDtoDomain>();
AlibabaHealthNrCepWarstqtyBatchupdateRequest.TopIsvStqtyLstDtoDomain obj3 = new AlibabaHealthNrCepWarstqtyBatchupdateRequest.TopIsvStqtyLstDtoDomain();
list2.Add(obj3);
obj3.DeptCode = "1001";
obj3.GoodsCode = "100019";
obj3.GoodsQty = "20";
req.WarStqtyList_ = list2;
AlibabaHealthNrCepWarstqtyBatchupdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthNrCepWarstqtyBatchupdateRequest;
$war_stqty_list = new TopIsvStqtyLstDto;
$war_stqty_list->dept_code="1001";
$war_stqty_list->goods_code="100019";
$war_stqty_list->goods_qty="20";
$req->setWarStqtyList(json_encode($war_stqty_list));
$resp = $c->execute($req, $sessionKey);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.health.nr.cep.warstqty.batchupdate' \
-d 'partner_id=apidoc' \
-d 'session=e9bca165-28da-4c6b-8bf4-90c7a810d4b9' \
-d 'sign=0529177AC2965A6727A24A2A30742E10' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-26+14%3A28%3A03' \
-d 'v=2.0' \
-d 'war_stqty_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthNrCepWarstqtyBatchupdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.war_stqty_list=""
try:
resp= req.getResponse(sessionkey)
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.health.nr.cep.warstqty.batchupdate");
add_param(pRequest,"war_stqty_list","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.health.nr.cep.warstqty.batchupdate', {
'war_stqty_list':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})