OneSky Classic API is deprecated and only available for Over-the-air iOS SDK users.
Please use the new Platform API in order to utilize all of the new features.
The prefix of all APIs.
https://api.oneskyapp.com/2/string/output?api-key=your-key&dev-hash=TheHash&platform-id=1×tamp=1355555555
Return all projects under your account
{ "projects": [ { "id": 1, "name": "OneSky", "base_locale": "en_US" }, { "id": 2, "name": "TwoSky...s", "base_locale": "en_US" } ] }
Return all platforms in a project
{ "platforms": [ { "id": 1, "type": "iPhone/iPad App", "code": "ios" }, { "id": 2, "type": "Miscelleneous", "code": "misc", "description": "database" } ] }
Add a project
{ "response": "ok" }
Get the information of the project
{ "project": { "name": "Website", "base_locale": "en_US" } }
Modify a project
{ "response": "ok" }
Delete a project
{ "response": "ok" }
Get the strings with translations.
This API is designed for handling large amount of requests at the same time. The results may delay for several seconds.
{ "translation": { "Tag A": { "Locale A": { "String Key A": "string", "String Key B": { "Context A": "string", "Context B": "string" } }, "Locale B": { "String Key A": "string" } }, "Tag B": { "Locale A": { "String Key C": "string" } } }, "md5": "95e6198f16ea363291dfa9bc18282545" }
{ "translation": { "common": { "en_US": { "Account": "Account", "Active Translators": "Active Translators", "Add": "Add", "%{number} languages available": "%{number} languages available", "book": { "verb": "book", "noun": "book" } }, "zh_TW": { "Add": "加入" } } }, "md5": "95e6198f16ea363291dfa9bc18282545" }
// md5 matched
{
"response": "up-to-date"
}
Upload a string file to add new strings. Send out email to user when strings input finished.
The imported file will be sent to an import queue, the API response doesn't mean the file has been fully imported.
projectProject name.filenameName of the uploaded string file.totalTotal number of strings found.successNumber of successfully input strings.
{ "response": "upload-in-progress" }
Download strings and translations as string file.
This API is designed for handling large amount of requests at the same time. The results may delay for several seconds.
HTTP file download
Quote for the strings need to be translated.
{ "agencies": [ { "id": 1, "name": "Google", "turnaround_time": 0, "amount": 0, "min_charge": 0, "type": "TRANSLATION", "from_locale": "en_US", "to_locale": "zh_TW", "is_machine": true }, { "id": 2, "name": "OneSky Translation", "turnaround_time": 2, "amount": 56.72, "min_charge": 30, "type": "TRANSLATION", "from_locale": "en_US", "to_locale": "zh_TW", "is_machine": false } ], "credits": 395.87 }
id ID of the agency. name Name of the agency. turnaround_time Expected working days needed. If 0, will be finished in a few minutes. amountCost of the order (USD).min_chargeMinimum charge from the agency (USD).typeType of the order.from_localeThe locale you want to translate from.to_localeThe locale you want to translate to.is_machineThe agency returns machine translations.creditsCredit remains in your account.
Order translation. Will use credits when place order. Please recharge credits in your account management page if needed.
{ "response": "ok" }
{ "response": "No string to be translated" }
Get the information of the platform
{ "platform": { "project": "Website", "base_locale": "en_US", "type": { "name": "iPhone/iPad App", "code": "ios" } } }
Add a platform into a project
{ "platform": { "result": "Created", "platform-id": 1 } }
Modify a platform and its languages
{ "response": "ok" }
Get the details of activated locales for a platform
{ "locales": [ { "locale": "en_US", "name": { "eng": "English (US)", "local": "English (US)" }, "locale_ios": "en", "custom_locale" : null, "is_active": true, "is_private": false, "string_select_threshold": 3, "string_confirm_threshold": 20, "completeness": 0, }, { "locale": "zh_TW", "name": { "eng": "Traditional Chinese", "local": "繁體中文" }, "locale_ios": "zh-Hant", "custom_locale" : "zh-Custom", "is_active": true, "is_private": false, "string_select_threshold": 3, "string_confirm_threshold": 20, "completeness": 0, }, ... ] }
Delete a platform
{ "response": "ok" }
Import phrases and translations into a platform from another.
Only "approved" translations will be imported
{ "response": "import-in-progress" }
Get the contribution data of a translator
{ "contribution": { "all": { "string_translated": 21, "word_translated": 142, "string_selected": 8, "word_selected": 44, "string_confirmed": 2, "word_confirmed": 14, "good_vote_received": 138, "bad_vote_received": 23, "good_vote_gave": 212, "bad_vote_gave": 43 } } }
{ "contribution": { "en_US": { "string_translated": 12, "word_translated": 86, "string_selected": 3, "word_selected": 21, "string_confirmed": 1, "word_confirmed": 12, "good_vote_received": 53, "bad_vote_received": 13, "good_vote_gave": 45, "bad_vote_gave": 24 } } }
Get available locale list.
{ "locales": [ { "locale": "en_US", "name": { "eng": "English (US)", "local": "English (US)" }, "locale_ios": "en" }, { "locale": "af_ZA", "name": { "eng": "Afrikaans", "local": "Afrikaans" } }, { "locale": "sq_AL", "name": { "eng": "Albanian", "local": "Shqip" } }, ... }
Get available platform type list.
{ "types": [ { "name": "iPhone/iPad App", "code": "ios" }, { "name": "Android App", "code": "android" }, { "name": "Website", "code": "website" }, { "name": "Miscellaneous", "code": "misc" } ] }
Get the Single-Sign-On link for logging in.
If locale is specified but project is not specified, we will add this user as a collaborator to all your projects containing the specified locale.
{ "url": "https:\/\/translate.oneskyapp.com\/?time=1290495566&id=abc@oneskyapp.com&data=d98e3fc22ba4bce8537bfef7929f1fc5&name=Leon", "md5": "7f4d51e53b0e2fec49262840caa29720" }
{ "url": "https:\/\/translate.oneskyapp.com\/?time=1290495566&id=abc@oneskyapp.com&data=d98e3fc22ba4bce8537bfef7929f1fc5&name=Leon&locale=fr_FR", "md5": "7f4d51e53b0e2fec49262840caa29720" }
{ "url": "https:\/\/translate.oneskyapp.com\/?time=1290495566&id=abc@oneskyapp.com&data=d98e3fc22ba4bce8537bfef7929f1fc5&name=Leon&locale=fr_FR&project=1,2,3", "md5": "7f4d51e53b0e2fec49262840caa29720" }