Supported Methods

Rate Project

Request Example curl --request POST "https://www.onehourtranslation.com/api/2/projects/89741/rating" --data "secret_key=<SECRET_KEY>&public_key=<PUBLIC_KEY>&type=service&rate=5&remarks=Solid translation, thank you.&publish=1&categories[service_would_recommend]=1&categories[service_good_quality]=1" Response Example {  "status":   {    "code":0,    "msg":"ok"   },  "results":[],  "errors":[] }

Get Project Tags

Request Example curl --request GET "https://www.onehourtranslation.com/api/2/project/187/tag?secret_key=<SECRET_KEY>&public_key=<SECRET_KEY>" Response Example {  "status":   {    "code":0,    "msg":"ok"   },  "results":   [     "1":"Test tag 1",     "2":"Test tag 2",     "3":"Test tag 3"   ]  "errors":[] }

Delete tag from project

Request Example curl --request DELETE "https://www.onehourtranslation.com/api/2/project/185/tag/3?secret_key=<SECRET_KEY>&public_key=<SECRET_KEY>" Response Example {  "status":   {    "code":0,    "msg":"ok"   },  "results":[],  "errors":[] }

Add New Tag To Project

Request Example curl --request POST "https://www.onehourtranslation.com/api/2/project/184/tag" --data "secret_key=<SECRET_KEY>&public_key=<PUBLIC_KEY>&tag_name=new tag" Response Example {  "status":   {    "code":0,    "msg":"ok"   },  "results":[],  "errors":[] }

Create a new project

Request Example curl --request POST "https://www.onehourtranslation.com/api/2/tm/context/c-3d2f0d91bbdd/translate/english/to/arabic" --data "secret_key=<secret_key>&public_key=<public_key>" Response Example {  "status":   {    "code":0,    "msg":"ok"   },  "results":   {    "project_id":"1851",    "word_count":100,    "credits":700   },  "errors":[] }

Delete specific phrase

Request Example curl --request DELETE "https://www.onehourtranslation.com/api/2/tm/context/c-3d2f0d91bbdd/phrase/ab8f37d89b1154ba18c78a7e4b8eef2acdfec1eb?secret_key=<secret_key>&public_key=<public_key>" Response Example {  "status":   {    "code":0,    "msg":"ok"   },  "results":   {    "status":0,    "errors":[],    "results":[]   },  "errors":[] }

Update specific phrase

Request Example curl --request POST "https://www.onehourtranslation.com/api/2/tm/context/c-3d2f0d91bbdd/phrase/ab8f37d89b1154ba18c78a7e4b8eef2acdfec1eb" --data "secret_key=<secret_key>&public_key=<public_key>&source_text=test phrase&target_language=nl-nl&target_text=test-zin"