Batch Text/HTML Translation
Tổng quan API
- Kết quả dịch hàng loạt
URL API
Tham số yêu cầu
Body
| Trường | Loại | Giải thích | Bắt buộc |
|---|---|---|---|
| format | string | Giá trị tùy chọn: text,htmlGiá trị mặc định: text | sai |
| fromLang | string | Source language, two-letter language code(ISO 639-1 standard), default value: auto | sai |
| toLang | string | Target language, two-letter language code(ISO 639-1 standard) | đúng |
| sourceTextMap | object | Key-value pair format key is the unique identifier of the text to be translated, can be used to correspond to source text, value is the text to be translated. eg.: { "1": "男士T恤衫", "2": "夏季裙子"} | đúng |
| scene | string | Translation scene, optional values:title(product title)description(product detailed description)chat(for the communication scenario with e-commerce buyers and sellers)other(other common scenarios) | đúng |
Xác thực bảo mật
mẹo
Vui lòng vào Console-API Keys để tạo apikey của bạn.
Hãy thêm apikey vào header của yêu cầu. Vui lòng tham khảo ví dụ bên dưới.
Ví dụ yêu cầu
- cURL
- Python
- JavaScript
- Java
- Go
- PHP
Ví dụ phản hồi
- 200
- 417
- 422
- 439
- 499
- 500
- 503
Loading...