TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelFutureSoftmodifyRequest req = new XhotelFutureSoftmodifyRequest();
req.setExpireTime(3000L);
req.setTid(12343453242L);
req.setOutOrderId("123121");
req.setHotelCode("aa");
req.setHid(322323L);
req.setContext("请求报文");
req.setOperateType("4");
req.setRequestId("aauucesa2342");
XhotelFutureSoftmodifyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
XhotelFutureSoftmodifyRequest req = new XhotelFutureSoftmodifyRequest();
req.ExpireTime = 3000L;
req.Tid = 12343453242L;
req.OutOrderId = "123121";
req.HotelCode = "aa";
req.Hid = 322323L;
req.Context = "请求报文";
req.OperateType = "4";
req.RequestId = "aauucesa2342";
XhotelFutureSoftmodifyResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new XhotelFutureSoftmodifyRequest;
$req->setExpireTime("3000");
$req->setTid("12343453242");
$req->setOutOrderId("123121");
$req->setHotelCode("aa");
$req->setHid("322323");
$req->setContext("请求报文");
$req->setOperateType("4");
$req->setRequestId("aauucesa2342");
$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.future.softmodify' \
-d 'partner_id=apidoc' \
-d 'session=4e025082-0f53-43f2-9e67-91cc8a1b9a11' \
-d 'sign=F9F4154A78B55188F5BD9C56498148BB' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+20%3A12%3A44' \
-d 'v=2.0' \
-d 'context=%E8%AF%B7%E6%B1%82%E6%8A%A5%E6%96%87' \
-d 'expire_time=3000' \
-d 'hid=322323' \
-d 'hotel_code=aa' \
-d 'operate_type=4' \
-d 'out_order_id=123121' \
-d 'request_id=aauucesa2342' \
-d 'tid=12343453242'
# -*- coding: utf-8 -*-
import top.api
req=top.api.XhotelFutureSoftmodifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.expire_time=3000
req.tid=12343453242
req.out_order_id="123121"
req.hotel_code="aa"
req.hid=322323
req.context="请求报文"
req.operate_type="4"
req.request_id="aauucesa2342"
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.future.softmodify");
add_param(pRequest,"expire_time","3000");
add_param(pRequest,"tid","12343453242");
add_param(pRequest,"out_order_id","123121");
add_param(pRequest,"hotel_code","aa");
add_param(pRequest,"hid","322323");
add_param(pRequest,"context","请求报文");
add_param(pRequest,"operate_type","4");
add_param(pRequest,"request_id","aauucesa2342");
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.future.softmodify', {
'expire_time':'3000',
'tid':'12343453242',
'out_order_id':'123121',
'hotel_code':'aa',
'hid':'322323',
'context':'请求报文',
'operate_type':'4',
'request_id':'aauucesa2342'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})