API de tâche de traduction
Obtenir la traduction
/v1/translation/queryTextsObtenez le texte source et la traduction correspondante extraits par le système, retournés au format JSON
Exemple
curl
1curl -X POST 'https://otranslator.com/api/v1/translation/queryTexts' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "taskId": "[string]"
6}'
Paramètres de requête
Paramètres | Type | Par défaut | Description | Exemple |
---|---|---|---|---|
*taskId | String | - | ID de la tâche de traduction | - |
Réponse
Paramètres | Type | Par défaut | Description | Exemple |
---|---|---|---|---|
taskId | String | - | ID de la tâche de traduction | - |
texts | JSON | - | JSON correspondant au texte original et à la traduction | - |
revisedTexts | JSON | - | Texte original et traduction révisés | - |