Method: documents.batchGet

擷取多份文件,每份文件都包含完整的 Markdown 內容。

HTTP 要求

GET https://developerknowledge.googleapis.com/v1alpha/documents:batchGet

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

查詢參數

參數
names[]

string

必填。指定要擷取的檔案名稱。批次作業最多可擷取 20 份文件。系統傳回文件的順序與要求中的 names 相同。

格式:documents/{uri_without_scheme} 範例:documents/docs.cloud.google.com/storage/docs/creating-buckets

要求主體

要求主體必須為空白。

回應主體

DeveloperKnowledge.BatchGetDocuments 的回應訊息。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "documents": [
    {
      object (Document)
    }
  ]
}
欄位
documents[]

object (Document)

內含要求的文件。

授權範圍

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

  • https://www.googleapis.com/auth/devprofiles.full_control
  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱OAuth 2.0 Overview