Batch Text/HTML Translation
ภาพรวม API
- ผลลัพธ์ของการแปลแบบเป็นชุด
API URL
พารามิเตอร์คำขอ
Body
| ฟิลด์ | ประเภท | คำอธิบาย | จำเป็น |
|---|---|---|---|
| format | string | ค่าที่เลือกได้: text,htmlค่าเริ่มต้น: text | เท็จ |
| fromLang | string | Source language, two-letter language code(ISO 639-1 standard), default value: auto | เท็จ |
| toLang | string | Target language, two-letter language code(ISO 639-1 standard) | จริง |
| 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": "夏季裙子"} | จริง |
| 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) | จริง |
การยืนยันตัวตน
tip
กรุณาไปที่ คอนโซล-ศูนย์บัญชี เพื่อรับ apiToken ของคุณ
เพิ่ม apiToken ของคุณลงในพารามิเตอร์คำขอ และโปรดดูตัวอย่างด้านล่าง
ตัวอย่างคำขอ
- cURL
- Python
- JavaScript
- Java
- Go
- PHP
ตัวอย่างการตอบกลับ
- 200
- 417
- 422
- 439
- 499
- 500
- 503
Loading...