POST Hotel/AllHotel5
Request Information
URI Parameters
None.
Body Parameters
HotelAllRequestName | Description | Type | Additional information |
---|---|---|---|
cityID | string |
None. |
|
userID |
user API |
string |
None. |
accessToken |
access code getting from login |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "cityID": "sample string 1", "userID": "sample string 2", "accessToken": "sample string 3" }
application/xml, text/xml
Sample:
<HotelAllRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 3</accessToken> <userID>sample string 2</userID> <cityID>sample string 1</cityID> </HotelAllRequest>
Response Information
Resource Description
HotelDetailListInfoResponseName | Description | Type | Additional information |
---|---|---|---|
listHotel | Collection of HotelDetailInfo |
None. |
|
respTime |
describe time in sending response |
date |
None. |
userID |
user ID to access API |
string |
None. |
accessToken |
access token that needed to access API |
string |
None. |
status |
SUCCESS or FAILED |
string |
None. |
respMessage |
detail message of response status |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "listHotel": [ { "ID": "sample string 1", "name": "sample string 2", "description": "sample string 3", "address": "sample string 4", "phone": "sample string 5", "email": "sample string 6", "website": "sample string 7", "rating": 8.0 }, { "ID": "sample string 1", "name": "sample string 2", "description": "sample string 3", "address": "sample string 4", "phone": "sample string 5", "email": "sample string 6", "website": "sample string 7", "rating": 8.0 } ], "respTime": "2025-01-23T00:06:11.7299365+07:00", "userID": "sample string 2", "accessToken": "sample string 3", "status": "sample string 4", "respMessage": "sample string 5" }
application/xml, text/xml
Sample:
<HotelDetailListInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 3</accessToken> <respMessage>sample string 5</respMessage> <respTime>2025-01-23T00:06:11.7299365+07:00</respTime> <status>sample string 4</status> <userID>sample string 2</userID> <listHotel> <HotelDetailInfo> <ID>sample string 1</ID> <address>sample string 4</address> <description>sample string 3</description> <email>sample string 6</email> <name>sample string 2</name> <phone>sample string 5</phone> <rating>8</rating> <website>sample string 7</website> </HotelDetailInfo> <HotelDetailInfo> <ID>sample string 1</ID> <address>sample string 4</address> <description>sample string 3</description> <email>sample string 6</email> <name>sample string 2</name> <phone>sample string 5</phone> <rating>8</rating> <website>sample string 7</website> </HotelDetailInfo> </listHotel> </HotelDetailListInfoResponse>