Method: accounts.hotelViews.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
GET https://travelpartner.googleapis.com/v3/{parent=accounts/*}/hotelViews
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
所查詢帳戶的資源名稱。格式為 accounts/{account_id} 。
|
查詢參數
參數 |
pageSize |
integer
在單一頁面中擷取的元素數量。
|
pageToken |
string
要擷取的頁面權杖。
|
filter |
string
選用,用於篩選 HotelView 的條件 (欄位和運算式)。語法必須有 in 運算子周圍的空格。否則,您可以省略空格。 無法合併條件。 hotelId 欄位可用來選取特定飯店。
「liveOnGoogle 」欄位可以選取 Google 顯示的屬性,或 Google 搜尋結果中省略的屬性。 matchStatus 欄位可用來篩選帳戶傳回的 HotelView 清單。
有效條件及其語法範例如下:
hotelId = 'hotel_ABC'
hotelId in ('hotel_ABC', 'hotel_XYZ')
liveOnGoogle = 'TRUE'
liveOnGoogle = 'FALSE'
matchStatus = 'NOT_MATCHED'
matchStatus in ('NOT_MATCHED', 'MATCHED', 'MAP_OVERLAP')
|
回應主體
如果成功,回應主體即會包含具有以下結構的資料:
JSON 表示法 |
{
"hotelViews": [
{
object (HotelView )
}
],
"nextPageToken": string
} |
欄位 |
hotelViews[] |
object (HotelView )
符合查詢的列清單。
|
nextPageToken |
string
用於擷取下一頁結果的分頁符記。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/travelpartner
詳情請參閱 OAuth 2.0 總覽。
保留所有權利。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-08-23 (世界標準時間)。
[null,null,["上次更新時間:2022-08-23 (世界標準時間)。"],[[["\u003cp\u003eRetrieves a list of hotel views associated with a specific account, allowing for filtering and pagination.\u003c/p\u003e\n"],["\u003cp\u003eRequest is made via a GET method to the specified endpoint with required path and optional query parameters.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes an array of hotel views and a token for retrieving subsequent pages if available.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/travelpartner\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.hotelViews.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListHotelViewsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nReturns the list of hotel views.\n\n### HTTP request\n\n`GET https://travelpartner.googleapis.com/v3/{parent=accounts/*}/hotelViews`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------|\n| `parent` | `string` The resource name of the account being queried. The format is `accounts/{account_id}`. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Number of elements to retrieve in a single page. |\n| `pageToken` | `string` Token of the page to retrieve. |\n| `filter` | `string` Optional. The conditions (fields and expressions) used to filter HotelViews. The syntax requires spaces surrounding the `in` operator. Otherwise, spaces can be omitted. Conditions cannot be joined. The `hotelId` field can be used to select specific hotels. The `liveOnGoogle` field can select properties that Google shows, or properties that are omitted in google search results. A value of 'TRUE' includes properties that are conditionally active, e.g. LIVE_ON_GOOGLE_STATUS_ACTIVE_OUTSIDE_DSA_REGION. The `matchStatus` field can be used to filter the list of HotelViews returned for the account. Examples of valid conditions and their syntax are as follows: - `hotelId = 'hotel_ABC'` - `hotelId in ('hotel_ABC', 'hotel_XYZ')` - `liveOnGoogle = 'TRUE'` - `liveOnGoogle = 'FALSE'` - `matchStatus = 'NOT_MATCHED'` - `matchStatus in ('NOT_MATCHED', 'MATCHED', 'MAP_OVERLAP')` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for [HotelViewService.ListHotelViews](/hotels/hotel-prices/api-reference/rest/v3/accounts.hotelViews/list#google.travel.travelpartner.v3.HotelViewService.ListHotelViews).\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"hotelViews\": [ { object (/hotels/hotel-prices/api-reference/rest/v3/accounts.hotelViews#HotelView) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| `hotelViews[]` | `object (`[HotelView](/hotels/hotel-prices/api-reference/rest/v3/accounts.hotelViews#HotelView)`)` The list of rows that match the query. |\n| `nextPageToken` | `string` Pagination token used to retrieve the next page of results. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/travelpartner`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]