GET Translation - TextKing/textking-api GitHub Wiki
Request: GET /project/{projectId}/job/{jobId}/translation
Downloads the translation for a job. The document will be transferred as binary data in the response body.
Header | Description |
---|---|
Authorization | oAuth 2 authentication header |
HTTP status | Description |
---|---|
200 Ok | Successful request. |
404 Not Found | The job or project with the given ID does not exist or the job has no translated document. |
Header | Description |
---|---|
Content-Type | The content type of the translated document. |
Content-Disposition | Always attachment; filename={filename} , where {filename} indicates the file name of the downloaded document. |
Last-Modified | The date the document was last modified. |
Download the translated document for the job with the ID d0c30471-7c70-45d4-bcc1-a7773cb352bd
, where the translated document is a plain text file:
GET /v1/project/bc141454-5949-401b-9c05-7591ee2f5624/job/translation HTTP/1.1 Host: api.textking.com Authorization: Bearer youraccesstoken
Response:
HTTP/1.1 200 Ok Content-Type: text/plain Content-Disposition: attachment; filename=MyFile.txt Last-Modified: Tue, 15 Aug 2012 11:33:23 GMT Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.