Method: comments.get

根據 ID 取得留言。

HTTP 要求

GET https://www.googleapis.com/drive/v3/files/{fileId}/comments/{commentId}

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

路徑參數

參數
fileId

string

檔案的 ID。

commentId

string

留言的 ID。

查詢參數

參數
includeDeleted

boolean

是否要傳回已刪除的註解。刪除的留言不會包含原始內容。

要求主體

要求主體必須為空白。

回應主體

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

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.readonly

部分範圍會受到限制,而且需要應用程式接受安全性評估才能使用這些範圍。詳情請參閱授權指南