TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpChannelSupplierProductPriceApplyRequest req = new AlibabaAscpChannelSupplierProductPriceApplyRequest();
AlibabaAscpChannelSupplierProductPriceApplyRequest.TopPriceApplyCreateRequest obj1 = new AlibabaAscpChannelSupplierProductPriceApplyRequest.TopPriceApplyCreateRequest();
obj1.setCreatorNick("1");
obj1.setProductId(123L);
obj1.setAdviseSalePriceLow("1");
obj1.setCreatorId("123");
obj1.setSkuPriceMap("[{\"skuId\":\"4882197332144\",\"price\":\"0.02\"},{\"skuId\":\"4882197332144\",\"adviseSalePriceLow\":\"0.03\"},{\"skuId\":\"4882197332144\",\"adviseSalePriceHigh\":\"0.04\"}]");
obj1.setAdviseSalePriceHigh("1");
obj1.setDistributorNick("名称");
obj1.setDistributePrice("1");
obj1.setSubChannelCode("taofxMarket_taobao");
obj1.setProductPrice("1");
obj1.setChannelCode("taofxMarket");
req.setTopPriceApplyCreateRequest(obj1);
AlibabaAscpChannelSupplierProductPriceApplyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAscpChannelSupplierProductPriceApplyRequest req = new AlibabaAscpChannelSupplierProductPriceApplyRequest();
AlibabaAscpChannelSupplierProductPriceApplyRequest.TopPriceApplyCreateRequestDomain obj1 = new AlibabaAscpChannelSupplierProductPriceApplyRequest.TopPriceApplyCreateRequestDomain();
obj1.CreatorNick = "1";
obj1.ProductId = 123L;
obj1.AdviseSalePriceLow = "1";
obj1.CreatorId = "123";
obj1.SkuPriceMap = "[{\"skuId\":\"4882197332144\",\"price\":\"0.02\"},{\"skuId\":\"4882197332144\",\"adviseSalePriceLow\":\"0.03\"},{\"skuId\":\"4882197332144\",\"adviseSalePriceHigh\":\"0.04\"}]";
obj1.AdviseSalePriceHigh = "1";
obj1.DistributorNick = "名称";
obj1.DistributePrice = "1";
obj1.SubChannelCode = "taofxMarket_taobao";
obj1.ProductPrice = "1";
obj1.ChannelCode = "taofxMarket";
req.TopPriceApplyCreateRequest_ = obj1;
AlibabaAscpChannelSupplierProductPriceApplyResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAscpChannelSupplierProductPriceApplyRequest;
$top_price_apply_create_request = new TopPriceApplyCreateRequest;
$top_price_apply_create_request->creator_nick="1";
$top_price_apply_create_request->product_id="123";
$top_price_apply_create_request->advise_sale_price_low="1";
$top_price_apply_create_request->creator_id="123";
$top_price_apply_create_request->sku_price_map="[{\"skuId\":\"4882197332144\",\"price\":\"0.02\"},{\"skuId\":\"4882197332144\",\"adviseSalePriceLow\":\"0.03\"},{\"skuId\":\"4882197332144\",\"adviseSalePriceHigh\":\"0.04\"}]";
$top_price_apply_create_request->advise_sale_price_high="1";
$top_price_apply_create_request->distributor_nick="名称";
$top_price_apply_create_request->distribute_price="1";
$top_price_apply_create_request->sub_channel_code="taofxMarket_taobao";
$top_price_apply_create_request->product_price="1";
$top_price_apply_create_request->channel_code="taofxMarket";
$req->setTopPriceApplyCreateRequest(json_encode($top_price_apply_create_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.supplier.product.price.apply' \
-d 'partner_id=apidoc' \
-d 'session=cc543392-e8e0-4da6-8b04-dc001d818d6e' \
-d 'sign=371BC9CB7066081E3013B580180C68DD' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+16%3A04%3A15' \
-d 'v=2.0' \
-d 'top_price_apply_create_request=%7B%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAscpChannelSupplierProductPriceApplyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_price_apply_create_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.supplier.product.price.apply");
add_param(pRequest,"top_price_apply_create_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.supplier.product.price.apply', {
'top_price_apply_create_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})