TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelOrderFutureInfoGetRequest req = new XhotelOrderFutureInfoGetRequest();
req.setOutUuid("333333");
req.setTids("123455666;123455666;123455666");
req.setCreatedStart(StringUtils.parseDateTime("2015-12-12 00:00:00"));
req.setCreatedEnd(StringUtils.parseDateTime("2015-12-12 00:00:00"));
req.setHotelCode("123");
req.setVendor("zhuzhe");
req.setOperateType(1L);
XhotelOrderFutureInfoGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
XhotelOrderFutureInfoGetRequest req = new XhotelOrderFutureInfoGetRequest();
req.OutUuid = "333333";
req.Tids = "123455666;123455666;123455666";
req.CreatedStart = DateTime.Parse("2015-12-12 00:00:00");
req.CreatedEnd = DateTime.Parse("2015-12-12 00:00:00");
req.HotelCode = "123";
req.Vendor = "zhuzhe";
req.OperateType = 1L;
XhotelOrderFutureInfoGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new XhotelOrderFutureInfoGetRequest;
$req->setOutUuid("333333");
$req->setTids("123455666;123455666;123455666");
$req->setCreatedStart("2015-12-12 00:00:00");
$req->setCreatedEnd("2015-12-12 00:00:00");
$req->setHotelCode("123");
$req->setVendor("zhuzhe");
$req->setOperateType("1");
$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.xhotel.order.future.info.get' \
-d 'partner_id=apidoc' \
-d 'session=ab31c1a0-3a89-4214-9b66-1fa232ce655e' \
-d 'sign=8EEE2EB62217DB3741AF047ECAD29205' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+19%3A55%3A05' \
-d 'v=2.0' \
-d 'created_end=2015-12-12+00%3A00%3A00' \
-d 'created_start=2015-12-12+00%3A00%3A00' \
-d 'hotel_code=123' \
-d 'operate_type=1' \
-d 'out_uuid=333333' \
-d 'tids=123455666%3B123455666%3B123455666' \
-d 'vendor=zhuzhe'
# -*- coding: utf-8 -*-
import top.api
req=top.api.XhotelOrderFutureInfoGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.out_uuid="333333"
req.tids="123455666;123455666;123455666"
req.created_start="2015-12-12 00:00:00"
req.created_end="2015-12-12 00:00:00"
req.hotel_code="123"
req.vendor="zhuzhe"
req.operate_type=1
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.xhotel.order.future.info.get");
add_param(pRequest,"out_uuid","333333");
add_param(pRequest,"tids","123455666;123455666;123455666");
add_param(pRequest,"created_start","2015-12-12 00:00:00");
add_param(pRequest,"created_end","2015-12-12 00:00:00");
add_param(pRequest,"hotel_code","123");
add_param(pRequest,"vendor","zhuzhe");
add_param(pRequest,"operate_type","1");
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.xhotel.order.future.info.get', {
'out_uuid':'333333',
'tids':'123455666;123455666;123455666',
'created_start':'2015-12-12 00:00:00',
'created_end':'2015-12-12 00:00:00',
'hotel_code':'123',
'vendor':'zhuzhe',
'operate_type':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})