TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripIeAgentOrderSearchRequest req = new AlitripIeAgentOrderSearchRequest();
req.setAgentId(123L);
req.setBeginTime(StringUtils.parseDateTime("2015-01-13 21:15:59"));
req.setCurrentPage(1L);
req.setEndTime(StringUtils.parseDateTime("2015-01-13 21:15:59"));
req.setOrderStatus("Init,BookSuccess,PaySuccess,TicketSuccess,Close");
req.setPageSize(20L);
req.setFareSource(3L);
req.setResourceCode("qijiandian");
req.setOfficeNo("SHA384");
AlitripIeAgentOrderSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripIeAgentOrderSearchRequest req = new AlitripIeAgentOrderSearchRequest();
req.AgentId = 123L;
req.BeginTime = DateTime.Parse("2015-01-13 21:15:59");
req.CurrentPage = 1L;
req.EndTime = DateTime.Parse("2015-01-13 21:15:59");
req.OrderStatus = "Init,BookSuccess,PaySuccess,TicketSuccess,Close";
req.PageSize = 20L;
req.FareSource = 3L;
req.ResourceCode = "qijiandian";
req.OfficeNo = "SHA384";
AlitripIeAgentOrderSearchResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripIeAgentOrderSearchRequest;
$req->setAgentId("123");
$req->setBeginTime("2015-01-13 21:15:59");
$req->setCurrentPage("1");
$req->setEndTime("2015-01-13 21:15:59");
$req->setOrderStatus("Init,BookSuccess,PaySuccess,TicketSuccess,Close");
$req->setPageSize("20");
$req->setFareSource("3");
$req->setResourceCode("qijiandian");
$req->setOfficeNo("SHA384");
$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=taobao.alitrip.ie.agent.order.search' \
-d 'partner_id=apidoc' \
-d 'session=66be7db4-d261-49a8-ac74-885eda3253fe' \
-d 'sign=15B06E30A88C48D2A8FFBCB47FE5A698' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+21%3A50%3A30' \
-d 'v=2.0' \
-d 'agent_id=123' \
-d 'begin_time=2015-01-13+21%3A15%3A59' \
-d 'current_page=1' \
-d 'end_time=2015-01-13+21%3A15%3A59' \
-d 'fare_source=3' \
-d 'office_no=SHA384' \
-d 'order_status=Init%2CBookSuccess%2CPaySuccess%2CTicketSuccess%2CClose' \
-d 'page_size=20' \
-d 'resource_code=qijiandian'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripIeAgentOrderSearchRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.agent_id=123
req.begin_time="2015-01-13 21:15:59"
req.current_page=1
req.end_time="2015-01-13 21:15:59"
req.order_status="Init,BookSuccess,PaySuccess,TicketSuccess,Close"
req.page_size=20
req.fare_source=3
req.resource_code="qijiandian"
req.office_no="SHA384"
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,"taobao.alitrip.ie.agent.order.search");
add_param(pRequest,"agent_id","123");
add_param(pRequest,"begin_time","2015-01-13 21:15:59");
add_param(pRequest,"current_page","1");
add_param(pRequest,"end_time","2015-01-13 21:15:59");
add_param(pRequest,"order_status","Init,BookSuccess,PaySuccess,TicketSuccess,Close");
add_param(pRequest,"page_size","20");
add_param(pRequest,"fare_source","3");
add_param(pRequest,"resource_code","qijiandian");
add_param(pRequest,"office_no","SHA384");
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('taobao.alitrip.ie.agent.order.search', {
'agent_id':'123',
'begin_time':'2015-01-13 21:15:59',
'current_page':'1',
'end_time':'2015-01-13 21:15:59',
'order_status':'Init,BookSuccess,PaySuccess,TicketSuccess,Close',
'page_size':'20',
'fare_source':'3',
'resource_code':'qijiandian',
'office_no':'SHA384'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})