TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuProductLogisticsCountryGetcoststatusRequest req = new AlibabaIcbuProductLogisticsCountryGetcoststatusRequest();
AlibabaIcbuProductLogisticsCountryGetcoststatusRequest.CountryLogisticsCostStatusRequest obj1 = new AlibabaIcbuProductLogisticsCountryGetcoststatusRequest.CountryLogisticsCostStatusRequest();
obj1.setUnitWeight("1.5");
obj1.setShippingTemplateId(123456L);
obj1.setSaleType("normal");
obj1.setUnitSize("20X20X20");
obj1.setBatchNum(10L);
obj1.setLanguage("zh_cn");
obj1.setProductType(1L);
obj1.setMoq(10L);
req.setCountryLogisticsCostStatusRequest(obj1);
AlibabaIcbuProductLogisticsCountryGetcoststatusResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIcbuProductLogisticsCountryGetcoststatusRequest req = new AlibabaIcbuProductLogisticsCountryGetcoststatusRequest();
AlibabaIcbuProductLogisticsCountryGetcoststatusRequest.CountryLogisticsCostStatusRequestDomain obj1 = new AlibabaIcbuProductLogisticsCountryGetcoststatusRequest.CountryLogisticsCostStatusRequestDomain();
obj1.UnitWeight = "1.5";
obj1.ShippingTemplateId = 123456L;
obj1.SaleType = "normal";
obj1.UnitSize = "20X20X20";
obj1.BatchNum = 10L;
obj1.Language = "zh_cn";
obj1.ProductType = 1L;
obj1.Moq = 10L;
req.CountryLogisticsCostStatusRequest_ = obj1;
AlibabaIcbuProductLogisticsCountryGetcoststatusResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIcbuProductLogisticsCountryGetcoststatusRequest;
$country_logistics_cost_status_request = new CountryLogisticsCostStatusRequest;
$country_logistics_cost_status_request->unit_weight="1.5";
$country_logistics_cost_status_request->shipping_template_id="123456";
$country_logistics_cost_status_request->sale_type="normal";
$country_logistics_cost_status_request->unit_size="20X20X20";
$country_logistics_cost_status_request->batch_num="10";
$country_logistics_cost_status_request->language="zh_cn";
$country_logistics_cost_status_request->product_type="1";
$country_logistics_cost_status_request->moq="10";
$req->setCountryLogisticsCostStatusRequest(json_encode($country_logistics_cost_status_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.icbu.product.logistics.country.getcoststatus' \
-d 'partner_id=apidoc' \
-d 'session=ee83fcdf-d837-40fc-91d0-14457da7b173' \
-d 'sign=1914B61ED3CDCAFD4048A0E241C99DE5' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-23+19%3A26%3A17' \
-d 'v=2.0' \
-d 'country_logistics_cost_status_request=-'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIcbuProductLogisticsCountryGetcoststatusRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.country_logistics_cost_status_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.icbu.product.logistics.country.getcoststatus");
add_param(pRequest,"country_logistics_cost_status_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.icbu.product.logistics.country.getcoststatus', {
'country_logistics_cost_status_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})