获取翻译对比
GET
https://api.gezhe.com/v1/translations/{id}/diff
请求参数
Path 参数
id
string
任务 ID
示例代码
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//diff'
返回响应
🟢200成功
application/json
Body
before
array [object {2}]
翻译前文本
pageNo
integer
页数
values
array[string]
必需
after
array [object {2}]
翻译后文本
pageNo
integer
必需
values
array[string]
必需
示例
{
"before": [
{
"pageNo": 1,
"values": [
"XXX 发布会",
"2024.11.01"
]
},
{
"pageNo": 2,
"values": [
"01",
"目录条目 1",
"02",
"目录条目 2",
"03",
"目录条目 3",
"04"
]
}
],
"after": [
{
"pageNo": 1,
"values": [
"XXX Product Launch.",
"2024.11.01"
]
},
{
"pageNo": 2,
"values": [
"01",
"Menu item 01",
"02",
"Menu item 02",
"03",
"Menu item 03"
]
}
]
}