Method: alerts.getMetadata

傳回快訊的中繼資料。嘗試取得不存在快訊的中繼資料,會傳回 NOT_FOUND 錯誤。

HTTP 要求

GET https://alertcenter.googleapis.com/v1beta1/alerts/{alertId}/metadata

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

路徑參數

參數
alertId

string

必要欄位。這個中繼資料所屬的快訊 ID。

查詢參數

參數
customerId

string

選用設定。與快訊中繼資料相關聯的客戶 Google Workspace 帳戶專屬 ID。customerId 必須在開頭「C」移除 (例如 046psxkn)。如未提供,則會從呼叫者身分推測。查看您的客戶 ID

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 AlertMetadata 的執行例項。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/apps.alerts

詳情請參閱授權指南