聚合翻译
开发中
POST
/api/aggregateTranslate
最后修改时间:2024-05-16 07:49:56
请求参数
Body 参数application/json
from
string
源语言
to
string
目标语言
text
string
要翻译的内容
platform
array[string]
必需
示例
{
"from": "auto",
"to": "en",
"text": "需要翻译的内容",
"platform": ["Baidu", "YouDao", "Google"]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/aggregateTranslate' \
--header 'Content-Type: application/json' \
--data-raw '{
"from": "auto",
"to": "en",
"text": "需要翻译的内容",
"platform": ["Baidu", "YouDao", "Google"]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-05-16 07:49:56