Skip to content
phw edited this page Oct 15, 2012 · 4 revisions

GET /project/{projectId}/job/{jobId}/translation/{revision}

Request: GET /project/{projectId}/job/{jobId}/translation/{revision}

Downloads the translation for a job with the given revision. The document will be transferred as binary data in the response body.

Request headers

Header Description
Authorize oAuth 2 authentication header

Response status codes

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.

Response headers

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.

Example

Download revision 6 of 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/6 HTTP/1.1
Host: api.textking.com
Authorize: Bearer youraccesstoken

Response:

HTTP/1.1 200 Ok
Content-Type: text/plain
Content-Disposition: attachment; filename=MyFile.txt

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.
Clone this wiki locally