Translate

GET: /mt/translate/text
Request params
Parameters Description
source_language See Language Codes.
target_language See Language Codes.
source_content Text to translate.
Response params
Parameters Description
translation Translated content.

Requset Example

curl --request GET
"https://www.onehourtranslation.com/api/2/mt/translate/text?secret_key=<SECRET_KEY>&public_key=<PUBLIC_KEY>&source_language=en-us&target_language=fr-fr&source_content=text for translation"

Response Example

{
 "status":
  {
   "code":0,
   "msg":"ok"
  },
 "results":
  {
   "TranslatedText":"texte"
  },
 "errors":[]
}