TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelFuturehotelInvoiceAppointResultRequest req = new XhotelFuturehotelInvoiceAppointResultRequest();
req.setBuyerId(1L);
req.setTid(1L);
req.setAppointmentStatus(1L);
req.setSellerId(1L);
req.setOperatorType(0L);
XhotelFuturehotelInvoiceAppointResultResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
XhotelFuturehotelInvoiceAppointResultRequest req = new XhotelFuturehotelInvoiceAppointResultRequest();
req.BuyerId = 1L;
req.Tid = 1L;
req.AppointmentStatus = 1L;
req.SellerId = 1L;
req.OperatorType = 0L;
XhotelFuturehotelInvoiceAppointResultResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new XhotelFuturehotelInvoiceAppointResultRequest;
$req->setBuyerId("1");
$req->setTid("1");
$req->setAppointmentStatus("1");
$req->setSellerId("1");
$req->setOperatorType("0");
$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.futurehotel.invoice.appoint.result' \
-d 'partner_id=apidoc' \
-d 'session=a3800d41-b6ec-44f2-b0cf-5d2d5fae9c5c' \
-d 'sign=67EF1EE247D8D68F8C069FC44B2CFDF9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-06+18%3A55%3A50' \
-d 'v=2.0' \
-d 'appointment_status=1' \
-d 'buyer_id=1' \
-d 'operator_type=0' \
-d 'seller_id=1' \
-d 'tid=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.XhotelFuturehotelInvoiceAppointResultRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.buyer_id=1
req.tid=1
req.appointment_status=1
req.seller_id=1
req.operator_type=0
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.futurehotel.invoice.appoint.result");
add_param(pRequest,"buyer_id","1");
add_param(pRequest,"tid","1");
add_param(pRequest,"appointment_status","1");
add_param(pRequest,"seller_id","1");
add_param(pRequest,"operator_type","0");
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.futurehotel.invoice.appoint.result', {
'buyer_id':'1',
'tid':'1',
'appointment_status':'1',
'seller_id':'1',
'operator_type':'0'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})