QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
AliexpressLogisticsGetonlinelogisticsinfoRequest req = new AliexpressLogisticsGetonlinelogisticsinfoRequest();
req.setChinaLogisticsId("LA234234CN");
req.setInternationalLogisticsId("LP00038357949881");
req.setLogisticsStatus("CLOSED");
req.setGmtCreateEndStr("2016-06-27 18:15:00");
req.setPageSize(10L);
req.setQueryExpressOrder(false);
req.setCurrentPage(1L);
req.setOrderId(60015640573917L);
req.setGmtCreateStartStr("2016-06-27 18:20:00");
req.setId("cn12343523");
AliexpressLogisticsGetonlinelogisticsinfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressLogisticsGetonlinelogisticsinfoRequest req = new AliexpressLogisticsGetonlinelogisticsinfoRequest();
req.ChinaLogisticsId = "LA234234CN";
req.InternationalLogisticsId = "LP00038357949881";
req.LogisticsStatus = "CLOSED";
req.GmtCreateEndStr = "2016-06-27 18:15:00";
req.PageSize = 10L;
req.QueryExpressOrder = false;
req.CurrentPage = 1L;
req.OrderId = 60015640573917L;
req.GmtCreateStartStr = "2016-06-27 18:20:00";
req.Id = "cn12343523";
AliexpressLogisticsGetonlinelogisticsinfoResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressLogisticsGetonlinelogisticsinfoRequest;
$req->setChinaLogisticsId("LA234234CN");
$req->setInternationalLogisticsId("LP00038357949881");
$req->setLogisticsStatus("CLOSED");
$req->setGmtCreateEndStr("2016-06-27 18:15:00");
$req->setPageSize("10");
$req->setQueryExpressOrder("false");
$req->setCurrentPage("1");
$req->setOrderId("60015640573917");
$req->setGmtCreateStartStr("2016-06-27 18:20:00");
$req->setId("cn12343523");
$resp = $c->execute($req);
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=qimen.aliexpress.logistics.getonlinelogisticsinfo' \
-d 'partner_id=apidoc' \
-d 'sign=D8F907B68BDEE8599D37E5A8715C165B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-30+17%3A36%3A09' \
-d 'v=2.0' \
-d 'china_logistics_id=LA234234CN' \
-d 'current_page=1' \
-d 'gmt_create_end_str=2016-06-27+18%3A15%3A00' \
-d 'gmt_create_start_str=2016-06-27+18%3A20%3A00' \
-d 'id=cn12343523' \
-d 'international_logistics_id=LP00038357949881' \
-d 'logistics_status=CLOSED' \
-d 'order_id=60015640573917' \
-d 'page_size=10' \
-d 'query_express_order=false'
# -*- coding: utf-8 -*-
import top.api
req=top.api.QimenAliexpressLogisticsGetonlinelogisticsinfoRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.china_logistics_id="LA234234CN"
req.international_logistics_id="LP00038357949881"
req.logistics_status="CLOSED"
req.gmt_create_end_str="2016-06-27 18:15:00"
req.page_size=10
req.query_express_order=false
req.current_page=1
req.order_id=60015640573917
req.gmt_create_start_str="2016-06-27 18:20:00"
req.id="cn12343523"
try:
resp= req.getResponse()
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,"qimen.aliexpress.logistics.getonlinelogisticsinfo");
add_param(pRequest,"china_logistics_id","LA234234CN");
add_param(pRequest,"international_logistics_id","LP00038357949881");
add_param(pRequest,"logistics_status","CLOSED");
add_param(pRequest,"gmt_create_end_str","2016-06-27 18:15:00");
add_param(pRequest,"page_size","10");
add_param(pRequest,"query_express_order","false");
add_param(pRequest,"current_page","1");
add_param(pRequest,"order_id","60015640573917");
add_param(pRequest,"gmt_create_start_str","2016-06-27 18:20:00");
add_param(pRequest,"id","cn12343523");
pResponse = top_execute(pClient,pRequest,NULL);
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('qimen.aliexpress.logistics.getonlinelogisticsinfo', {
'china_logistics_id':'LA234234CN',
'international_logistics_id':'LP00038357949881',
'logistics_status':'CLOSED',
'gmt_create_end_str':'2016-06-27 18:15:00',
'page_size':'10',
'query_express_order':'false',
'current_page':'1',
'order_id':'60015640573917',
'gmt_create_start_str':'2016-06-27 18:20:00',
'id':'cn12343523'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})