Glossary API
Terminologielijst opvragen
POST/v1/glossary/query
Verkrijg details van een woordenlijst op basis van ID.
- Volledig adres
- https://otranslator.com/api/v1/glossary/query
- Authenticatie
- De API Key moet doorgegeven worden in de Authorization-verzoekheader
- Content-Type
- application/json
- Onjuist formaat
- { "error": "Invalid API key." }
Voorbeeld
curl
1curl -X POST 'https://otranslator.com/api/v1/glossary/query' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "glossaryId": "[string]"
6}'Verzoekparameters
| Parameters | Type | Standaard | Beschrijving | Voorbeeld |
|---|---|---|---|---|
| *glossaryId | String | - | Woordenlijst-ID | - |
Reactie
| Parameters | Type | Standaard | Beschrijving | Voorbeeld |
|---|---|---|---|---|
| glossaryId | String | - | Woordenlijst-ID | - |
| name | String | - | Naam van de woordenlijst | - |
| desc | String | - | Beschrijving terminologielijst | - |
| targetLang | String | - | Doeltaal | - |
| keys | String[] | - | Bronterminologielijst | - |
| translated | JSON | - | JSON-mapping van brontermen naar vertaling | - |
| createdAt | DateTime | - | Aanmaaktijd van de terminologielijst | - |
| updatedAt | DateTime | - | Bijwerktijd van de terminologielijst | - |
Veelvoorkomende fouten
401 Missing API key.
The Authorization request header is required.
401 Invalid API key.
The API key does not exist, has been deleted, or is no longer valid.
400 Missing required parameter: glossaryId.
Provide the glossaryId returned by the create glossary API.
404 Glossary not found.
The glossary does not exist or does not belong to the current API account.