Method: accounts.hotelViews.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
होटल व्यू की सूची दिखाता है.
एचटीटीपी अनुरोध
GET https://travelpartner.googleapis.com/v3/{parent=accounts/*}/hotelViews
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल होता है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
क्वेरी किए जा रहे खाते का संसाधन नाम. फ़ॉर्मैट accounts/{account_id} है.
|
क्वेरी पैरामीटर
पैरामीटर |
pageSize |
integer
किसी एक पेज में फ़ेच किए जाने वाले एलिमेंट की संख्या.
|
pageToken |
string
वापस पाने के लिए पेज का टोकन.
|
filter |
string
ज़रूरी नहीं. HotelViews को फ़िल्टर करने के लिए इस्तेमाल की जाने वाली शर्तें (फ़ील्ड और एक्सप्रेशन). सिंटैक्स के लिए in ऑपरेटर के आस-पास स्पेस होना ज़रूरी है. ऐसा न करने पर, स्पेस छोड़े जा सकते हैं. शर्तों को जोड़ा नहीं जा सकता. hotelId फ़ील्ड का इस्तेमाल करके, चुनिंदा होटल चुने जा सकते हैं.
liveOnGoogle फ़ील्ड, Google की दिखाई जाने वाली प्रॉपर्टी या Google पर खोज नतीजों में शामिल न की गई प्रॉपर्टी को चुन सकता है.
matchStatus फ़ील्ड का इस्तेमाल, खाते के लिए लौटाए गए HotelViews की सूची फ़िल्टर करने के लिए किया जा सकता है.
मान्य शर्तों और उनके सिंटैक्स के उदाहरण इस तरह हैं:
hotelId = 'hotel_ABC'
hotelId in ('hotel_ABC', 'hotel_XYZ')
liveOnGoogle = 'TRUE'
liveOnGoogle = 'FALSE'
matchStatus = 'NOT_MATCHED'
matchStatus in ('NOT_MATCHED', 'MATCHED', 'MAP_OVERLAP')
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
जेएसओएन के काेड में दिखाना |
{
"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 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2022-08-23 (UTC) को अपडेट किया गया."],[[["\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)."]]