TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
DrugPriceUpdateRequest req = new DrugPriceUpdateRequest();
req.setOutStoreId("98883311");
req.setOutItemId("12333211");
req.setPrice("12.3");
DrugPriceUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
DrugPriceUpdateRequest req = new DrugPriceUpdateRequest();
req.OutStoreId = "98883311";
req.OutItemId = "12333211";
req.Price = "12.3";
DrugPriceUpdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new DrugPriceUpdateRequest;
$req->setOutStoreId("98883311");
$req->setOutItemId("12333211");
$req->setPrice("12.3");
$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=taobao.drug.price.update' \
-d 'partner_id=apidoc' \
-d 'session=2fbab376-7205-4e24-8bac-a4de1d963986' \
-d 'sign=2CF9235BD1914570A5A66372D5E031BA' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-22+16%3A50%3A54' \
-d 'v=2.0' \
-d 'out_item_id=12333211' \
-d 'out_store_id=98883311' \
-d 'price=12.3'
# -*- coding: utf-8 -*-
import top.api
req=top.api.DrugPriceUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.out_store_id="98883311"
req.out_item_id="12333211"
req.price="12.3"
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,"taobao.drug.price.update");
add_param(pRequest,"out_store_id","98883311");
add_param(pRequest,"out_item_id","12333211");
add_param(pRequest,"price","12.3");
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('taobao.drug.price.update', {
'out_store_id':'98883311',
'out_item_id':'12333211',
'price':'12.3'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})