Documentinhoudsopgave

Translation Task API

Vertaaltaken opvragen

/v1/translation/query

De status en details van een vertalingstaak opvragen.

Voorbeeld

curl
1curl -X POST 'https://otranslator.com/api/v1/translation/query' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5  "taskId": "[string]"
6}'

Verzoekparameters

ParametersTypeStandaardBeschrijvingVoorbeeld
*taskIdString-

Vertaalopdracht-ID

-

Reactie

ParametersTypeStandaardBeschrijvingVoorbeeld
taskIdString-

Taak-ID

-
modelString-

Voor vertaling gebruikt model

-
fromLangString-

Brontaal

-
toLangString-

Doeltaal

-
statusString-

Status: 'Waiting' | 'Processing' | 'Completed' | 'Terminated' | 'Cancelled'

-
progressNumber-

Voortgang, 0~100

-
errorMsgString-

Foutbericht

-
translatedFileUrlString-

Downloadlocatie van de vertaling

-
translatedBilingualFileUrlString-
  • 双语译文的下载地址, 仅支持 PDF, DOCX, PPTX, XLSX, EPUB, CSV, SRT, TXT, HTML, ODF - 当文件过大或者翻译出错时,将不会生成双语译文
-
tokenCountInteger-
  • 文档中需要翻译文本的Tokens - PDF中的图片翻译按每页1200 Tokens 计算
-
priceInteger-

Totaal aantal benodigde credits voor de vertaling

-
usedCreditsInteger-

Aantal Credits gebruikt door de vertaaltaak

-
glossaryString[]-

Naam van de terminologielijst gebruikt voor de vertaaltaak

-
shouldTranslateImageBoolean-

Of afbeeldingen in document te vertalen

-
createdAtDateTime-

Aanmaaktijd van de vertaaltaak

-
updatedAtDateTime-

Bijwerktijd van de vertaalopdracht

-
Translation Task API
Vertaaltaak aanmaken
Translation Task API
Vertaaltaak verwijderen