สารบัญเอกสาร

Glossary API

สร้างอภิธานศัพท์

/v1/glossary/create

สร้างอภิธานศัพท์ใหม่พร้อมคำศัพท์และคำแปล

ตัวอย่าง

curl
1curl -X POST 'https://otranslator.com/api/v1/glossary/create' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5  "name": "ศัพท์ทางการเงิน",
6  "targetLang": "English",
7  "keys": "[\"储蓄分流\"]",
8  "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'

พารามิเตอร์ของคำขอ

พารามิเตอร์ประเภทค่าเริ่มต้นคำอธิบายตัวอย่าง
*nameString-

ชื่อศัพท์สัม

ศัพท์ทางการเงิน
descString-

คำอธิบายศัพท์สัม

-
*targetLangString-
  • หมายถึงศัพท์คลังคำนี้จะมีผลใช้เมื่อแปลเอกสารเป็น"ภาษาเป้าหมาย" - ภาษาที่รองรับ: สอบถาม
English
*keysString[]-

รายการศัพท์ต้นฉบับ

["储蓄分流"]
*translatedJSON-

แผนที่ศัพท์สู่การแปล

{'储蓄分流':'Diversion of household deposits'}

การตอบสนอง

พารามิเตอร์ประเภทค่าเริ่มต้นคำอธิบายตัวอย่าง
glossaryIdString-

รหัส Glossary

-