TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressLogisticsRedefiningGetonlinelogisticsinfoRequest req = new AliexpressLogisticsRedefiningGetonlinelogisticsinfoRequest();
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.setLogisticsOrderId(12424222L);
req.setLogisticsOrderCode("LP00509424027010");
AliexpressLogisticsRedefiningGetonlinelogisticsinfoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressLogisticsRedefiningGetonlinelogisticsinfoRequest req = new AliexpressLogisticsRedefiningGetonlinelogisticsinfoRequest();
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.LogisticsOrderId = 12424222L;
req.LogisticsOrderCode = "LP00509424027010";
AliexpressLogisticsRedefiningGetonlinelogisticsinfoResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressLogisticsRedefiningGetonlinelogisticsinfoRequest;
$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->setLogisticsOrderId("12424222");
$req->setLogisticsOrderCode("LP00509424027010");
$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.redefining.getonlinelogisticsinfo' \
-d 'partner_id=apidoc' \
-d 'session=cf2af978-2eec-4630-9075-7659331f4752' \
-d 'sign=3A8CFCDB22FC6ABE7CC3ED50C2E2736A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-02-04+14%3A52%3A03' \
-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 'international_logistics_id=LP00038357949881' \
-d 'logistics_order_code=LP00509424027010' \
-d 'logistics_order_id=12424222' \
-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.AliexpressLogisticsRedefiningGetonlinelogisticsinfoRequest(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.logistics_order_id=12424222
req.logistics_order_code="LP00509424027010"
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.redefining.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,"logistics_order_id","12424222");
add_param(pRequest,"logistics_order_code","LP00509424027010");
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.redefining.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',
'logistics_order_id':'12424222',
'logistics_order_code':'LP00509424027010'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})