API Glosarium
Membuat glosarium
/v1/glossary/createMembuat glosarium baru yang berisi istilah dan terjemahan.
Contoh
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": "Istilah keuangan",
6 "targetLang": "English",
7 "keys": "[\"储蓄分流\"]",
8 "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'
Parameter permintaan
Parameter | Tipe | Default | Deskripsi | Contoh |
---|---|---|---|---|
*name | String | - | Nama glosarium | Istilah keuangan |
desc | String | - | Deskripsi glosarium | - |
*targetLang | String | - |
| English |
*keys | String[] | - | Daftar istilah sumber | ["储蓄分流"] |
*translated | JSON | - | Pemetaan istilah ke terjemahan | {'储蓄分流':'Diversion of household deposits'} |
Respons
Parameter | Tipe | Default | Deskripsi | Contoh |
---|---|---|---|---|
glossaryId | String | - | ID glosarium | - |