翻译任务API
获取译文
/v1/translation/queryTexts获取系统提取的一一对应的原文和译文,以 JSON 的格式返回
示例
curl
1curl -X POST 'https://shangyiai.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 | - | 已修订的原文和译文 | - |