其他
HTTP状态码说明API在线调用
接口地址
https://api.briskapi.com/v1/translate
请求方法
POST
请求鉴权(Headers)
Content-Type: application/json
Authorization: Bearer {API key}
请求参数
-
content
string
必需
The text that you want to translate.
-
from
string
可选
The source language of the text.
For Supported Languages, See: https://cn.briskapi.com/languagesupport
-
to
string
可选
The target language for translation.
请求示例CURL
curl https://api.briskapi.com/v1/translate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {API key}" \
-d '{
"content":"Hello",
"from":"en",
"to":"ja"
}'
返回示例
{
"Content": "こんにちは"
}