TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthNrmopItemUpdateRequest req = new AlibabaAlihealthNrmopItemUpdateRequest();
req.setShopId("123456");
req.setOutId("567890");
req.setPrice(9900L);
req.setInventory(100L);
AlibabaAlihealthNrmopItemUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthNrmopItemUpdateRequest req = new AlibabaAlihealthNrmopItemUpdateRequest();
req.ShopId = "123456";
req.OutId = "567890";
req.Price = 9900L;
req.Inventory = 100L;
AlibabaAlihealthNrmopItemUpdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthNrmopItemUpdateRequest;
$req->setShopId("123456");
$req->setOutId("567890");
$req->setPrice("9900");
$req->setInventory("100");
$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.alihealth.nrmop.item.update' \
-d 'partner_id=apidoc' \
-d 'session=47f62f01-08f3-43c0-8476-4a0f18bd1fe3' \
-d 'sign=BB078ED68A385D33783DE96187A86BE3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-09+21%3A49%3A59' \
-d 'v=2.0' \
-d 'inventory=100' \
-d 'out_id=567890' \
-d 'price=9900' \
-d 'shop_id=123456'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthNrmopItemUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.shop_id="123456"
req.out_id="567890"
req.price=9900
req.inventory=100
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.alihealth.nrmop.item.update");
add_param(pRequest,"shop_id","123456");
add_param(pRequest,"out_id","567890");
add_param(pRequest,"price","9900");
add_param(pRequest,"inventory","100");
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.alihealth.nrmop.item.update', {
'shop_id':'123456',
'out_id':'567890',
'price':'9900',
'inventory':'100'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})