翻譯任務API
獲取譯文
/v1/translation/queryTexts獲取系統提取的一一對應的原文和譯文,以 JSON 的格式返回
範例
curl
1curl -X POST 'https://otranslator.com/api/v1/translation/queryTexts' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "taskId": "[string]"
6}'請求參數
| 參數 | 類型 | 預設 | 描述 | 範例 |
|---|---|---|---|---|
| *taskId | String | - | 翻譯任務ID | - |
響應
| 參數 | 類型 | 預設 | 描述 | 範例 |
|---|---|---|---|---|
| taskId | String | - | 翻譯任務ID | - |
| texts | JSON | - | 原文和譯文對應的JSON | - |
| revisedTexts | JSON | - | 已修訂的原文和譯文 | - |