TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripOrderinfoGetRequest req = new AlitripOrderinfoGetRequest();
req.setChannelName("feiye");
req.setOrderId(123L);
req.setPassword("7b1e6dd7e98f6e84f246cb4783880449");
req.setReservationCode("1393");
AlitripOrderinfoGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripOrderinfoGetRequest req = new AlitripOrderinfoGetRequest();
req.ChannelName = "feiye";
req.OrderId = 123L;
req.Password = "7b1e6dd7e98f6e84f246cb4783880449";
req.ReservationCode = "1393";
AlitripOrderinfoGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripOrderinfoGetRequest;
$req->setChannelName("feiye");
$req->setOrderId("123");
$req->setPassword("7b1e6dd7e98f6e84f246cb4783880449");
$req->setReservationCode("1393");
$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.orderinfo.get' \
-d 'partner_id=apidoc' \
-d 'session=6e147e47-b9f9-4c62-94ae-185c9042dc7c' \
-d 'sign=4D9A98E1A0E07EB352109DDA8BE9902A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-30+12%3A56%3A15' \
-d 'v=2.0' \
-d 'channel_name=feiye' \
-d 'order_id=123' \
-d 'password=7b1e6dd7e98f6e84f246cb4783880449' \
-d 'reservation_code=1393'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripOrderinfoGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.channel_name="feiye"
req.order_id=123
req.password="7b1e6dd7e98f6e84f246cb4783880449"
req.reservation_code="1393"
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.orderinfo.get");
add_param(pRequest,"channel_name","feiye");
add_param(pRequest,"order_id","123");
add_param(pRequest,"password","7b1e6dd7e98f6e84f246cb4783880449");
add_param(pRequest,"reservation_code","1393");
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.orderinfo.get', {
'channel_name':'feiye',
'order_id':'123',
'password':'7b1e6dd7e98f6e84f246cb4783880449',
'reservation_code':'1393'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})