TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelHstdfHotelroomstaticGetRequest req = new AlitripHotelHstdfHotelroomstaticGetRequest();
AlitripHotelHstdfHotelroomstaticGetRequest.GetHotelRoomStaticParam obj1 = new AlitripHotelHstdfHotelroomstaticGetRequest.GetHotelRoomStaticParam();
obj1.setPage(1L);
obj1.setPageSize(100L);
obj1.setType(116L);
req.setParamGetHotelRoomStaticParam(obj1);
AlitripHotelHstdfHotelroomstaticGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripHotelHstdfHotelroomstaticGetRequest req = new AlitripHotelHstdfHotelroomstaticGetRequest();
AlitripHotelHstdfHotelroomstaticGetRequest.GetHotelRoomStaticParamDomain obj1 = new AlitripHotelHstdfHotelroomstaticGetRequest.GetHotelRoomStaticParamDomain();
obj1.Page = 1L;
obj1.PageSize = 100L;
obj1.Type = 116L;
req.ParamGetHotelRoomStaticParam_ = obj1;
AlitripHotelHstdfHotelroomstaticGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripHotelHstdfHotelroomstaticGetRequest;
$param_get_hotel_room_static_param = new GetHotelRoomStaticParam;
$param_get_hotel_room_static_param->page="1";
$param_get_hotel_room_static_param->page_size="100";
$param_get_hotel_room_static_param->type="116";
$req->setParamGetHotelRoomStaticParam(json_encode($param_get_hotel_room_static_param));
$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=alitrip.hotel.hstdf.hotelroomstatic.get' \
-d 'partner_id=apidoc' \
-d 'session=682a5494-5ed3-427f-96dd-f0c1e02798ac' \
-d 'sign=EA38BA557C657AE1DF0929F7854BE04A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-22+17%3A19%3A00' \
-d 'v=2.0' \
-d 'param_get_hotel_room_static_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripHotelHstdfHotelroomstaticGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_get_hotel_room_static_param=""
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,"alitrip.hotel.hstdf.hotelroomstatic.get");
add_param(pRequest,"param_get_hotel_room_static_param","数据结构JSON示例");
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('alitrip.hotel.hstdf.hotelroomstatic.get', {
'param_get_hotel_room_static_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})