TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallSupplychainChannelProductPriceGetRequest req = new TmallSupplychainChannelProductPriceGetRequest();
req.setProductId(123456L);
req.setPriceType(1L);
req.setSkuId(12345678911L);
req.setChannelCode(1L);
TmallSupplychainChannelProductPriceGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallSupplychainChannelProductPriceGetRequest req = new TmallSupplychainChannelProductPriceGetRequest();
req.ProductId = 123456L;
req.PriceType = 1L;
req.SkuId = 12345678911L;
req.ChannelCode = 1L;
TmallSupplychainChannelProductPriceGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallSupplychainChannelProductPriceGetRequest;
$req->setProductId("123456");
$req->setPriceType("1");
$req->setSkuId("12345678911");
$req->setChannelCode("1");
$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=tmall.supplychain.channel.product.price.get' \
-d 'partner_id=apidoc' \
-d 'session=d5562eae-4b8c-4609-b045-eae178bab1e7' \
-d 'sign=C5FE82A589CEF75D94EEB5E83018D718' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+03%3A54%3A06' \
-d 'v=2.0' \
-d 'channel_code=1' \
-d 'price_type=1' \
-d 'product_id=123456' \
-d 'sku_id=12345678911'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallSupplychainChannelProductPriceGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.product_id=123456
req.price_type=1
req.sku_id=12345678911
req.channel_code=1
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,"tmall.supplychain.channel.product.price.get");
add_param(pRequest,"product_id","123456");
add_param(pRequest,"price_type","1");
add_param(pRequest,"sku_id","12345678911");
add_param(pRequest,"channel_code","1");
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('tmall.supplychain.channel.product.price.get', {
'product_id':'123456',
'price_type':'1',
'sku_id':'12345678911',
'channel_code':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})