Skip to content

Latest commit

 

History

History
92 lines (83 loc) · 3.15 KB

POST_quotations.md

File metadata and controls

92 lines (83 loc) · 3.15 KB

Quotation Resources

POST quotations

Description

Returns a list of quotations.

Requires authentication

  • Details described here

Parameters

  • from_locale (required) - the locale to be translated from, default base locale of the project
  • to_locales (required) - locale ids to be translated to, comma separated e.g. 'en-US,fr-FR,zh-TW', please refer to GET locales
  • items (required) - strings to be translated, format reference here
  • specialization (optional) - code of project specialization such as game, default general, please refer to GET specializations

Example

Request

POST https://plugin.api.onesky.io/1/projects/:project_id/quotations

Response

{
    "quotations": [
        {
            "words": 2013,
            "from_language": {
                "code": "en-US",
                "english_name": "English (United States)",
                "local_name": "English (United States)",
                "locale": "en",
                "region" : "US"
            },
            "to_language": {
                "code": "ja-JP",
                "english_name": "Japanese",
                "local_name": "日本語",
                "locale": "ja",
                "region" : "JP"
            },
            "translation": {
                "per_word_cost": "0.01",
                "total_cost": "20.13",
                "estimated_return_datetime": "2013-01-01T23:00:00+0000",
                "estimated_return_timestamp": 13453435132,
                "estimated_seconds_from_now": 1234567
            },
            "translation_and_review": {
                "per_word_cost": "0.02",
                "total_cost": "40.26",
                "estimated_return_datetime": "2013-01-02T23:00:00+0000",
                "estimated_return_timestamp": 1357167600,
                "estimated_seconds_from_now": 2345678
            }
        },
        {
            "words": 2013,
            "from_language": {
                "code": "en-US",
                "english_name": "English (United States)",
                "local_name": "English (United States)",
                "locale": "en",
                "region" : "US"
            },
            "to_language": {
                "code": "ko-KR",
                "english_name": "Korean",
                "local_name": "한국어",
                "locale": "ko",
                "region" : "KR"
            },
            "translation": {
                "per_word_cost": "0.01",
                "total_cost": "20.13",
                "estimated_return_datetime": "2013-01-01T23:00:00+0000",
                "estimated_return_timestamp": 13453435132,
                "estimated_seconds_from_now": 1234567
            },
            "translation_and_review": {
                "per_word_cost": "0.02",
                "total_cost": "40.26",
                "estimated_return_datetime": "2013-01-02T23:00:00+0000",
                "estimated_return_timestamp": 1357167600,
                "estimated_seconds_from_now": 2345678
            }
        }
    ]
}