取得指定文件的最新版本。
HTTP 要求
GET https://docs.googleapis.com/v1/documents/{documentId}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
documentId |
要擷取的文件 ID。 |
查詢參數
參數 | |
---|---|
suggestionsViewMode |
套用至文件的建議檢視模式。如此一來,你就可以在內嵌狀態下接受所有建議,以及接受或拒絕建議。如未指定,系統會使用 |
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體會包含 Document
的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/documents
https://www.googleapis.com/auth/documents.readonly
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.file
詳情請參閱授權指南。