Terminologie API
Terminologielijst creëren
/v1/glossary/createCreëer een nieuwe terminologielijst met termen en vertalingen.
Voorbeeld
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": "Financiële terminologie",
6 "targetLang": "English",
7 "keys": "[\"储蓄分流\"]",
8 "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'
Aanvraagparameters
Parameters | Type | Standaard | Beschrijving | Voorbeeld |
---|---|---|---|---|
*name | String | - | Naam van de woordenlijst | Financiële terminologie |
desc | String | - | Beschrijving terminologielijst | - |
*targetLang | String | - |
| English |
*keys | String[] | - | Bronterminologielijst | ["储蓄分流"] |
*translated | JSON | - | Koppeling van termen naar vertalingen | {'储蓄分流':'Diversion of household deposits'} |
Antwoord
Parameters | Type | Standaard | Beschrijving | Voorbeeld |
---|---|---|---|---|
glossaryId | String | - | Terminologielijst-ID | - |