Collect your translated content.

The example above contains the response of a successfully translated and accepted translation request. A quote that hasn't been ordered yet would look like this instead:

{
  "id": 10,
  "name": null,
  "slug": "untitled-10",
  "context_url": null,
  "description": null,
  "created_at": "2016-03-02T12:33:30.678Z",
  "completed_at": null,
  "quality": "machine",
  "target_language_code": "es",
  "style_guide_reference_id": 1,
  "status": "unordered",
  "api_download_url":"https://api.tolq.com/v1/translations/requests/download/10",
  "es": {
    "previous_words": 0,
    "new_words": 22,
    "total_words": 22,
    "cost": 0.07
  }
}

Attributes extra info

Some of the returned attributes are self-explanatory, whereas some others need a little more detail:

original

Original texts sent for translation within their corresponding keys.

translation

Contains a key with the language code in ISO 639-1 of the ordered language.
This key contains all the translations to said language following the same structure as the original attribute.

orders and totalorders [deprecated]_

In previous versions a single translation request could create several orders.
Now the system creates a single order and gives you access to the same data through other attributes, so we will be removing orders and total_orders in the following versions.

Language
Credentials
Basic
base64
:
URL