TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelRateIncrementUpdateRatesRequest req = new XhotelRateIncrementUpdateRatesRequest();
req.setQuota(1L);
req.setAlQuota(1L);
req.setGenAlQuota(1L);
req.setStatus(1L);
req.setRateIds("[1,2,3]");
req.setDateList("[“2017-11-30”,“2017-11-29”]");
XhotelRateIncrementUpdateRatesResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
XhotelRateIncrementUpdateRatesRequest req = new XhotelRateIncrementUpdateRatesRequest();
req.Quota = 1L;
req.AlQuota = 1L;
req.GenAlQuota = 1L;
req.Status = 1L;
req.RateIds = "[1,2,3]";
req.DateList = "[“2017-11-30”,“2017-11-29”]";
XhotelRateIncrementUpdateRatesResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new XhotelRateIncrementUpdateRatesRequest;
$req->setQuota("1");
$req->setAlQuota("1");
$req->setGenAlQuota("1");
$req->setStatus("1");
$req->setRateIds("[1,2,3]");
$req->setDateList("[“2017-11-30”,“2017-11-29”]");
$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.rate.increment.update.rates' \
-d 'partner_id=apidoc' \
-d 'session=af64f699-5c6c-4762-91ad-f9e076348880' \
-d 'sign=B1681866118B8034B5A4016E3C65C239' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-06+18%3A36%3A59' \
-d 'v=2.0' \
-d 'al_quota=1' \
-d 'date_list=%E2%80%9C2017-11-30%E2%80%9D%2C%E2%80%9C2017-11-29%E2%80%9D' \
-d 'gen_al_quota=1' \
-d 'quota=1' \
-d 'rate_ids=1%2C2%2C3' \
-d 'status=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.XhotelRateIncrementUpdateRatesRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.quota=1
req.al_quota=1
req.gen_al_quota=1
req.status=1
req.rate_ids="[1,2,3]"
req.date_list="[“2017-11-30”,“2017-11-29”]"
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.rate.increment.update.rates");
add_param(pRequest,"quota","1");
add_param(pRequest,"al_quota","1");
add_param(pRequest,"gen_al_quota","1");
add_param(pRequest,"status","1");
add_param(pRequest,"rate_ids","1,2,3");
add_param(pRequest,"date_list","“2017-11-30”,“2017-11-29”");
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.rate.increment.update.rates', {
'quota':'1',
'al_quota':'1',
'gen_al_quota':'1',
'status':'1',
'rate_ids':'1,2,3',
'date_list':'“2017-11-30”,“2017-11-29”'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})