Get Project Content (API)
API v2 is released with many new features. This API is still supported but for new API implementations please visit the Translation API v2 documentation
Fetch the project's translated text and source text
Fetch project's content by submitting the following request:
- URL: https://<base-url>/api/1/project/<project ID>/contents/
- Method: GET
- Response scheme: JSON
Request Parameters
| Name |
Description |
Remarks |
| account_id |
Your Account ID as provided by One Hour Translation |
|
| secret_key |
Your API Secret Key as provided by One Hour Translation |
|
*mandatory fields are marked as bold.
Response Parameters
On success, the following parameters are returned:
| Name |
Description |
Remarks |
| status_code |
Numerical indication of your request status |
|
| status_msg |
String indication of your request status |
|
| project_id |
(integer) Project ID for reference |
|
| original_content |
(string) The original content |
Base-64 Encoded |
| translated_content |
(string) The translated content |
Base-64 Encoded |
| content_type |
(string) Content format |
Options are:
|