Translate

GET /translate/?text=Hello World

Parameters

  • text (string) required

Example response

{ translated : 'Halo Dunia', ... }

POST /translate

Parameters

  • text (string) required

Example response

{ translated : 'Halo Dunia', ... }

Custom Parameters

  • Source Text

  • Response Content-Type

  • Response Body

Content-Type: application/json;
Body: {"id":"$ID", "text":"$SOURCE_TEXT", "translated":"$TRANSLATED_TEXT"}
-----
Content-Type: text/html;
Body: $ID<hr/>$SOURCE_TEXT<hr/>$TRANSLATED_TEXT
-----
Content-Type: text/plain;
Body: $TRANSLATED_TEXT

GET /translate/custom/?:source_text=Hello World

Parameters

  • source_text (string) required

Example response

Halo Dunia 

POST /translate/custom

Parameters

  • source_text (string) required

Example response

Halo Dunia 

Last updated