Method: accounts.listings.verify

僅供 VR 合作夥伴使用,可傳回資料有問題且符合放送資格的已驗證房源。

HTTP 要求

POST https://travelpartner.googleapis.com/v3/{parent=accounts/*}/listings:verify

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

要查詢的帳戶資源名稱。格式為 accounts/{account_id}

要求主體

要求主體會包含結構如下的資料:

JSON 表示法
{
  "xmlListing": string
}
欄位
xmlListing

string

符合 https://developers.google.com/hotels/hotel-prices/xml-reference/hotel-list-feed 中指定 XML 格式的房源。

回應主體

VRPartnerListingVerificationService.VerifyPartnerListings 的回應訊息。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "parsedListing": {
    object (ParsedListing)
  }
}
欄位
parsedListing

object (ParsedListing)

剖析後的清單輸出內容。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/travelpartner

詳情請參閱OAuth 2.0 Overview