TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallCarOrderQueryRequest req = new TmallCarOrderQueryRequest();
TmallCarOrderQueryRequest.TopOrderQuery obj1 = new TmallCarOrderQueryRequest.TopOrderQuery();
obj1.setPageNo(1L);
obj1.setPageSize(1L);
obj1.setStartTime("2020-03-04 12:59:59");
obj1.setEndTime("2020-03-04 12:59:59");
obj1.setOrderId(1221212L);
req.setTopOrderQuery(obj1);
TmallCarOrderQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallCarOrderQueryRequest req = new TmallCarOrderQueryRequest();
TmallCarOrderQueryRequest.TopOrderQueryDomain obj1 = new TmallCarOrderQueryRequest.TopOrderQueryDomain();
obj1.PageNo = 1L;
obj1.PageSize = 1L;
obj1.StartTime = "2020-03-04 12:59:59";
obj1.EndTime = "2020-03-04 12:59:59";
obj1.OrderId = 1221212L;
req.TopOrderQuery_ = obj1;
TmallCarOrderQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallCarOrderQueryRequest;
$top_order_query = new TopOrderQuery;
$top_order_query->page_no="1";
$top_order_query->page_size="1";
$top_order_query->start_time="2020-03-04 12:59:59";
$top_order_query->end_time="2020-03-04 12:59:59";
$top_order_query->order_id="1221212";
$req->setTopOrderQuery(json_encode($top_order_query));
$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=tmall.car.order.query' \
-d 'partner_id=apidoc' \
-d 'session=352e6001-41ce-48f6-b3a0-91276312f4a3' \
-d 'sign=987739390264D5530F77EB9AD8D4F103' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+15%3A51%3A41' \
-d 'v=2.0' \
-d 'top_order_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallCarOrderQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_order_query=""
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,"tmall.car.order.query");
add_param(pRequest,"top_order_query","数据结构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('tmall.car.order.query', {
'top_order_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})