Method: projects.detectLanguage

偵測要求內的文字語言。

HTTP 要求

POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{parent}:detectLanguage

路徑參數

參數
parent

string

這是必要旗標,撥打電話的專案。必須參照呼叫端的專案。

格式:projects/{project-id}

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "mime_type": string,
    string: string,
    ...
  },
  "content": string
}
欄位
mime_type

string

(選用步驟) 來源文字的格式,例如「text/html」、「text/plain」。如果留空,MIME 類型預設為「text/html」。

content

string

輸入內容會儲存為字串。

回應主體

如果成功,回應主體會包含 DetectLanguageResponse 的執行個體。