TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSellerOrderLogisticsGetRequest req = new AlibabaSellerOrderLogisticsGetRequest();
req.setETradeId("xxxxxxx");
req.setDataSelect("logistic_order");
AlibabaSellerOrderLogisticsGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSellerOrderLogisticsGetRequest req = new AlibabaSellerOrderLogisticsGetRequest();
req.ETradeId = "xxxxxxx";
req.DataSelect = "logistic_order";
AlibabaSellerOrderLogisticsGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSellerOrderLogisticsGetRequest;
$req->setETradeId("xxxxxxx");
$req->setDataSelect("logistic_order");
$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.seller.order.logistics.get' \
-d 'partner_id=apidoc' \
-d 'session=f593c108-32b3-4d35-abc2-80b7dcca72c9' \
-d 'sign=20DD79ED27B8526649E677DEF8B73051' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-22+04%3A55%3A02' \
-d 'v=2.0' \
-d 'data_select=logistic_order' \
-d 'e_trade_id=xxxxxxx'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSellerOrderLogisticsGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.e_trade_id="xxxxxxx"
req.data_select="logistic_order"
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.seller.order.logistics.get");
add_param(pRequest,"e_trade_id","xxxxxxx");
add_param(pRequest,"data_select","logistic_order");
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.seller.order.logistics.get', {
'e_trade_id':'xxxxxxx',
'data_select':'logistic_order'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})