TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripTripvpAgentOrderSearchRequest req = new AlitripTripvpAgentOrderSearchRequest();
req.setAgentId(8888L);
req.setBeginTime(StringUtils.parseDateTime("2017-07-01 00:00:00"));
req.setCurrentPage(1L);
req.setEndTime(StringUtils.parseDateTime("2017-07-01 00:00:00"));
req.setOrderStatus(2L);
req.setPageSize(20L);
AlitripTripvpAgentOrderSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripTripvpAgentOrderSearchRequest req = new AlitripTripvpAgentOrderSearchRequest();
req.AgentId = 8888L;
req.BeginTime = DateTime.Parse("2017-07-01 00:00:00");
req.CurrentPage = 1L;
req.EndTime = DateTime.Parse("2017-07-01 00:00:00");
req.OrderStatus = 2L;
req.PageSize = 20L;
AlitripTripvpAgentOrderSearchResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripTripvpAgentOrderSearchRequest;
$req->setAgentId("8888");
$req->setBeginTime("2017-07-01 00:00:00");
$req->setCurrentPage("1");
$req->setEndTime("2017-07-01 00:00:00");
$req->setOrderStatus("2");
$req->setPageSize("20");
$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=alitrip.tripvp.agent.order.search' \
-d 'partner_id=apidoc' \
-d 'session=9a5fbaf5-a5e8-45a4-b8d8-aad534dab3cd' \
-d 'sign=5A64319BBDC5BA056F90762F2DDEF6F4' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+21%3A37%3A46' \
-d 'v=2.0' \
-d 'agent_id=8888' \
-d 'begin_time=2017-07-01+00%3A00%3A00' \
-d 'current_page=1' \
-d 'end_time=2017-07-01+00%3A00%3A00' \
-d 'order_status=2' \
-d 'page_size=20'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripTripvpAgentOrderSearchRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.agent_id=8888
req.begin_time="2017-07-01 00:00:00"
req.current_page=1
req.end_time="2017-07-01 00:00:00"
req.order_status=2
req.page_size=20
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,"alitrip.tripvp.agent.order.search");
add_param(pRequest,"agent_id","8888");
add_param(pRequest,"begin_time","2017-07-01 00:00:00");
add_param(pRequest,"current_page","1");
add_param(pRequest,"end_time","2017-07-01 00:00:00");
add_param(pRequest,"order_status","2");
add_param(pRequest,"page_size","20");
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('alitrip.tripvp.agent.order.search', {
'agent_id':'8888',
'begin_time':'2017-07-01 00:00:00',
'current_page':'1',
'end_time':'2017-07-01 00:00:00',
'order_status':'2',
'page_size':'20'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})