依 ID 取得留言。
HTTP 要求
GET https://www.googleapis.com/drive/v2/files/{fileId}/comments/{commentId}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
fileId |
檔案的 ID。 |
commentId |
留言的 ID。 |
查詢參數
參數 | |
---|---|
includeDeleted |
設定後,即可在擷取已刪除的留言時成功執行,且會納入所有已刪除的回覆。 |
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體會包含 Comment
的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.readonly
部分範圍受到限制,應用程式必須進行安全性評估,才能使用這些範圍。詳情請參閱授權指南。