查询翻译任务
GET
https://api.gezhe.com/v1/translations/{id}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
id
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.gezhe.com/v1/translations/'
返回响应
🟢200成功
application/json
Body
id
string
任务 ID
name
string
必需
status
enum<string>
必需
枚举值:
pendingpickedtranslateddone
translateImageStatus
enum<string>
可选
枚举值:
nonefaildsuccesspartial
from
string
必需
to
string
必需
useGlossaryId
string
可选
thumbnailRequired
boolean
可选
imageTranslate
boolean
可选
finishedAt
string
可选
snapImageStatus
string
截图状态
snapImages
string
可选
notifyURL
string
接受任务状态变更的回调地址
downloadURL
string
完成后的下载地址
errorCode
string
错误码
errorMsg
string
错误信息
示例
{
"id": "string",
"name": "string",
"status": "pending",
"translateImageStatus": "none",
"from": "string",
"to": "string",
"useGlossaryId": "string",
"thumbnailRequired": true,
"imageTranslate": true,
"finishedAt": "string",
"snapImageStatus": "string",
"snapImages": "string",
"notifyURL": "string",
"downloadURL": "string",
"errorCode": "string",
"errorMsg": "string"
}