TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressLogisticsGetannouncementRequest req = new AliexpressLogisticsGetannouncementRequest();
req.setEndTime(1627787471000L);
req.setStartTime(1622517071000L);
req.setSellerId("200042360");
AliexpressLogisticsGetannouncementResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressLogisticsGetannouncementRequest req = new AliexpressLogisticsGetannouncementRequest();
req.EndTime = 1627787471000L;
req.StartTime = 1622517071000L;
req.SellerId = "200042360";
AliexpressLogisticsGetannouncementResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressLogisticsGetannouncementRequest;
$req->setEndTime("1627787471000");
$req->setStartTime("1622517071000");
$req->setSellerId("200042360");
$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.getannouncement' \
-d 'partner_id=apidoc' \
-d 'session=3612a115-6fcf-43e5-a897-6061eccf182b' \
-d 'sign=FD077878220C8CA51D4C4B63B48B0F5E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-02-04+14%3A49%3A14' \
-d 'v=2.0' \
-d 'end_time=1627787471000' \
-d 'seller_id=200042360' \
-d 'start_time=1622517071000'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliexpressLogisticsGetannouncementRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.end_time=1627787471000
req.start_time=1622517071000
req.seller_id="200042360"
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.getannouncement");
add_param(pRequest,"end_time","1627787471000");
add_param(pRequest,"start_time","1622517071000");
add_param(pRequest,"seller_id","200042360");
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.getannouncement', {
'end_time':'1627787471000',
'start_time':'1622517071000',
'seller_id':'200042360'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})