AI-generated Key Takeaways
-
The accounts.hotelViews.list method returns a list of hotel views.
-
The HTTP request uses a GET method with a URL following gRPC Transcoding syntax.
-
Path parameters require the resource name of the account being queried.
-
Query parameters allow filtering by
pageSize
,pageToken
, andfilter
based on fields likehotelId
,liveOnGoogle
, andmatchStatus
. -
The request body must be empty, and the response body contains a list of
hotelViews
and anextPageToken
for pagination.
Returns the list of hotel views.
HTTP request
GET https://travelpartner.googleapis.com/v3/{parent=accounts/*}/hotelViews
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
The resource name of the account being queried. The format is |
Query parameters
Parameters | |
---|---|
pageSize |
Number of elements to retrieve in a single page. |
pageToken |
Token of the page to retrieve. |
filter |
Optional. The conditions (fields and expressions) used to filter HotelViews. The syntax requires spaces surrounding the Conditions cannot be joined. The The The Examples of valid conditions and their syntax are as follows:
|
Request body
The request body must be empty.
Response body
Response message for HotelViewService.ListHotelViews
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"hotelViews": [
{
object ( |
Fields | |
---|---|
hotelViews[] |
The list of rows that match the query. |
nextPageToken |
Pagination token used to retrieve the next page of results. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/travelpartner
For more information, see the OAuth 2.0 Overview.