TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressLogisticsRedefiningGetprintinfosRequest req = new AliexpressLogisticsRedefiningGetprintinfosRequest();
req.setPrintDetail(false);
List<AliexpressLogisticsRedefiningGetprintinfosRequest.AeopWarehouseOrderQueryPdfRequest> list2 = new ArrayList<AliexpressLogisticsRedefiningGetprintinfosRequest.AeopWarehouseOrderQueryPdfRequest>();
AliexpressLogisticsRedefiningGetprintinfosRequest.AeopWarehouseOrderQueryPdfRequest obj3 = new AliexpressLogisticsRedefiningGetprintinfosRequest.AeopWarehouseOrderQueryPdfRequest();
list2.add(obj3);
obj3.setId(123432423L);
obj3.setInternationalLogisticsId("RE700150389CN");
req.setWarehouseOrderQueryDTOs(list2);
AliexpressLogisticsRedefiningGetprintinfosResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressLogisticsRedefiningGetprintinfosRequest req = new AliexpressLogisticsRedefiningGetprintinfosRequest();
req.PrintDetail = false;
List<AliexpressLogisticsRedefiningGetprintinfosRequest.AeopWarehouseOrderQueryPdfRequestDomain> list2 = new List<AliexpressLogisticsRedefiningGetprintinfosRequest.AeopWarehouseOrderQueryPdfRequestDomain>();
AliexpressLogisticsRedefiningGetprintinfosRequest.AeopWarehouseOrderQueryPdfRequestDomain obj3 = new AliexpressLogisticsRedefiningGetprintinfosRequest.AeopWarehouseOrderQueryPdfRequestDomain();
list2.Add(obj3);
obj3.Id = 123432423L;
obj3.InternationalLogisticsId = "RE700150389CN";
req.WarehouseOrderQueryDTOs_ = list2;
AliexpressLogisticsRedefiningGetprintinfosResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressLogisticsRedefiningGetprintinfosRequest;
$req->setPrintDetail("false");
$warehouse_order_query_d_t_os = new AeopWarehouseOrderQueryPdfRequest;
$warehouse_order_query_d_t_os->id="123432423";
$warehouse_order_query_d_t_os->international_logistics_id="RE700150389CN";
$req->setWarehouseOrderQueryDTOs(json_encode($warehouse_order_query_d_t_os));
$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.getprintinfos' \
-d 'partner_id=apidoc' \
-d 'session=e0d597c4-37e6-42c7-a988-6d886f70c894' \
-d 'sign=71A62297C15BD8AADC5FDEBF83D93326' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-02-04+15%3A04%3A53' \
-d 'v=2.0' \
-d 'print_detail=false' \
-d 'warehouse_order_query_d_t_os=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliexpressLogisticsRedefiningGetprintinfosRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.print_detail=false
req.warehouse_order_query_d_t_os=""
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.getprintinfos");
add_param(pRequest,"print_detail","false");
add_param(pRequest,"warehouse_order_query_d_t_os","数据结构JSON示例");
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.getprintinfos', {
'print_detail':'false',
'warehouse_order_query_d_t_os':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})