TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpChannelDistributorPriceGetRequest req = new AlibabaAscpChannelDistributorPriceGetRequest();
AlibabaAscpChannelDistributorPriceGetRequest.Pricerequest obj1 = new AlibabaAscpChannelDistributorPriceGetRequest.Pricerequest();
obj1.setProductId("572261812004");
obj1.setPriceType("CHANNEL_PRICE");
obj1.setSalesMode("dealer");
obj1.setSubChannelCode("tmallglobal_blackUnique");
obj1.setChannelCode("tmallglobal");
req.setPriceRequest(obj1);
AlibabaAscpChannelDistributorPriceGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAscpChannelDistributorPriceGetRequest req = new AlibabaAscpChannelDistributorPriceGetRequest();
AlibabaAscpChannelDistributorPriceGetRequest.PricerequestDomain obj1 = new AlibabaAscpChannelDistributorPriceGetRequest.PricerequestDomain();
obj1.ProductId = "572261812004";
obj1.PriceType = "CHANNEL_PRICE";
obj1.SalesMode = "dealer";
obj1.SubChannelCode = "tmallglobal_blackUnique";
obj1.ChannelCode = "tmallglobal";
req.PriceRequest_ = obj1;
AlibabaAscpChannelDistributorPriceGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAscpChannelDistributorPriceGetRequest;
$price_request = new Pricerequest;
$price_request->product_id="572261812004";
$price_request->price_type="CHANNEL_PRICE";
$price_request->sales_mode="dealer";
$price_request->sub_channel_code="tmallglobal_blackUnique";
$price_request->channel_code="tmallglobal";
$req->setPriceRequest(json_encode($price_request));
$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.ascp.channel.distributor.price.get' \
-d 'partner_id=apidoc' \
-d 'session=f0191b0d-b0a6-4b2c-b4ae-d72ccb9ba111' \
-d 'sign=EFAFB90FB2A23BF1E0D56F4DF538FB3B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+11%3A55%3A49' \
-d 'v=2.0' \
-d 'price_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAscpChannelDistributorPriceGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.price_request=""
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.ascp.channel.distributor.price.get");
add_param(pRequest,"price_request","数据结构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.ascp.channel.distributor.price.get', {
'price_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})