Method: spaces.messages.attachments.get

取得郵件附件的中繼資料。系統會使用 media API 擷取附件資料。如需範例,請參閱「取得郵件附件的中繼資料」一文。

需要應用程式驗證,且具備授權範圍

  • https://www.googleapis.com/auth/chat.bot

HTTP 要求

GET https://chat.googleapis.com/v1/{name=spaces/*/messages/*/attachments/*}

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

路徑參數

參數
name

string

必要欄位。附件的資源名稱,格式為 spaces/{space}/messages/{message}/attachments/{attachment}

要求主體

要求主體必須為空白。

回應主體

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

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/chat.bot

詳情請參閱授權指南