TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelBnbllmQueryRequest req = new XhotelBnbllmQueryRequest();
req.setVariables("{\"ttid\":\"23234\"}");
req.setAppId(1111L);
req.setFlowId(2222L);
XhotelBnbllmQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
XhotelBnbllmQueryRequest req = new XhotelBnbllmQueryRequest();
req.Variables = "{\"ttid\":\"23234\"}";
req.AppId = 1111L;
req.FlowId = 2222L;
XhotelBnbllmQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new XhotelBnbllmQueryRequest;
$req->setVariables("{\"ttid\":\"23234\"}");
$req->setAppId("1111");
$req->setFlowId("2222");
$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.bnbllm.query' \
-d 'partner_id=apidoc' \
-d 'session=21dd9428-a0d2-4fca-b350-aafc6065869b' \
-d 'sign=A8855CA3A6F4EDF9DEC0008627FB89F0' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+22%3A29%3A29' \
-d 'v=2.0' \
-d 'app_id=1111' \
-d 'flow_id=2222' \
-d 'variables=%7B%5C%22ttid%5C%22%3A%5C%2223234%5C%22%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.XhotelBnbllmQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.variables="{\"ttid\":\"23234\"}"
req.app_id=1111
req.flow_id=2222
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.bnbllm.query");
add_param(pRequest,"variables","{\"ttid\":\"23234\"}");
add_param(pRequest,"app_id","1111");
add_param(pRequest,"flow_id","2222");
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.bnbllm.query', {
'variables':'{\"ttid\":\"23234\"}',
'app_id':'1111',
'flow_id':'2222'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})