TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FenxiaoProductQuantityUpdateRequest req = new FenxiaoProductQuantityUpdateRequest();
req.setProductId(27960060200L);
req.setType(1L);
req.setQuantity("10");
req.setProperties("10000:10000");
FenxiaoProductQuantityUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
FenxiaoProductQuantityUpdateRequest req = new FenxiaoProductQuantityUpdateRequest();
req.ProductId = 27960060200L;
req.Type = 1L;
req.Quantity = "10";
req.Properties = "10000:10000";
FenxiaoProductQuantityUpdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new FenxiaoProductQuantityUpdateRequest;
$req->setProductId("27960060200");
$req->setType("1");
$req->setQuantity("10");
$req->setProperties("10000:10000");
$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.fenxiao.product.quantity.update' \
-d 'partner_id=apidoc' \
-d 'session=58039fc2-234e-44c5-8ed1-edba10a8889a' \
-d 'sign=95AD2FD86F0451ECB88DF6BC4A2B511A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+18%3A48%3A32' \
-d 'v=2.0' \
-d 'product_id=27960060200' \
-d 'properties=10000%3A10000' \
-d 'quantity=10' \
-d 'type=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.FenxiaoProductQuantityUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.product_id=27960060200
req.type=1
req.quantity="10"
req.properties="10000:10000"
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.fenxiao.product.quantity.update");
add_param(pRequest,"product_id","27960060200");
add_param(pRequest,"type","1");
add_param(pRequest,"quantity","10");
add_param(pRequest,"properties","10000:10000");
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.fenxiao.product.quantity.update', {
'product_id':'27960060200',
'type':'1',
'quantity':'10',
'properties':'10000:10000'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})