TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressLogisticsQuerylogisticsorderdetailRequest req = new AliexpressLogisticsQuerylogisticsorderdetailRequest();
req.setCurrentPage(1L);
req.setDomesticLogisticsNum("CN123456789RU");
req.setGmtCreateEndStr("2016-09-09 00:00:00");
req.setGmtCreateStartStr("2016-09-10 00:00:00");
req.setInternationalLogisticsNum("CN98989898US");
req.setLogisticsStatus("pickup_success");
req.setPageSize(20L);
req.setTradeOrderId(8972343764328L);
req.setWarehouseCarrierService("E_PACKET");
AliexpressLogisticsQuerylogisticsorderdetailResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressLogisticsQuerylogisticsorderdetailRequest req = new AliexpressLogisticsQuerylogisticsorderdetailRequest();
req.CurrentPage = 1L;
req.DomesticLogisticsNum = "CN123456789RU";
req.GmtCreateEndStr = "2016-09-09 00:00:00";
req.GmtCreateStartStr = "2016-09-10 00:00:00";
req.InternationalLogisticsNum = "CN98989898US";
req.LogisticsStatus = "pickup_success";
req.PageSize = 20L;
req.TradeOrderId = 8972343764328L;
req.WarehouseCarrierService = "E_PACKET";
AliexpressLogisticsQuerylogisticsorderdetailResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressLogisticsQuerylogisticsorderdetailRequest;
$req->setCurrentPage("1");
$req->setDomesticLogisticsNum("CN123456789RU");
$req->setGmtCreateEndStr("2016-09-09 00:00:00");
$req->setGmtCreateStartStr("2016-09-10 00:00:00");
$req->setInternationalLogisticsNum("CN98989898US");
$req->setLogisticsStatus("pickup_success");
$req->setPageSize("20");
$req->setTradeOrderId("8972343764328");
$req->setWarehouseCarrierService("E_PACKET");
$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=aliexpress.logistics.querylogisticsorderdetail' \
-d 'partner_id=apidoc' \
-d 'session=bec13568-2ddd-4ea4-a8cd-dd03fe96103b' \
-d 'sign=317DBBF969A7ED3C1CA517CB3EAB9580' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-02-04+14%3A45%3A14' \
-d 'v=2.0' \
-d 'current_page=1' \
-d 'domestic_logistics_num=CN123456789RU' \
-d 'gmt_create_end_str=2016-09-09+00%3A00%3A00' \
-d 'gmt_create_start_str=2016-09-10+00%3A00%3A00' \
-d 'international_logistics_num=CN98989898US' \
-d 'logistics_status=pickup_success' \
-d 'page_size=20' \
-d 'trade_order_id=8972343764328' \
-d 'warehouse_carrier_service=E_PACKET'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliexpressLogisticsQuerylogisticsorderdetailRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.current_page=1
req.domestic_logistics_num="CN123456789RU"
req.gmt_create_end_str="2016-09-09 00:00:00"
req.gmt_create_start_str="2016-09-10 00:00:00"
req.international_logistics_num="CN98989898US"
req.logistics_status="pickup_success"
req.page_size=20
req.trade_order_id=8972343764328
req.warehouse_carrier_service="E_PACKET"
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,"aliexpress.logistics.querylogisticsorderdetail");
add_param(pRequest,"current_page","1");
add_param(pRequest,"domestic_logistics_num","CN123456789RU");
add_param(pRequest,"gmt_create_end_str","2016-09-09 00:00:00");
add_param(pRequest,"gmt_create_start_str","2016-09-10 00:00:00");
add_param(pRequest,"international_logistics_num","CN98989898US");
add_param(pRequest,"logistics_status","pickup_success");
add_param(pRequest,"page_size","20");
add_param(pRequest,"trade_order_id","8972343764328");
add_param(pRequest,"warehouse_carrier_service","E_PACKET");
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('aliexpress.logistics.querylogisticsorderdetail', {
'current_page':'1',
'domestic_logistics_num':'CN123456789RU',
'gmt_create_end_str':'2016-09-09 00:00:00',
'gmt_create_start_str':'2016-09-10 00:00:00',
'international_logistics_num':'CN98989898US',
'logistics_status':'pickup_success',
'page_size':'20',
'trade_order_id':'8972343764328',
'warehouse_carrier_service':'E_PACKET'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})