penelopeg / LeRudePal

App made for the Pixels Camp Hackaton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LeRudePal

App made for the Pixels Camp Hackaton

Wiki

Command for sending request to Unbabel API:

curl -H "Authorization: ApiKey username:apikey" -H "Content-Type: application/json" -X POST https://sandbox.unbabel.com/tapi/v2/mt_translation/ -d '{"text" : "Text_to_translate", "target_
language" : "en", "text_format" : "text"}'

"mt_translation" uses machine translation only. Answer to request comes in the form:

{"origin": "api", "source_language": "pt", "status": "machine_translate_in_progress", "target_language": "en", "text": "cabrão", "text_format": "text", "uid": "7020203a4a"}

Command for getting the answer from Unbabel API:

curl -H "Authorization: ApiKey username:apikey" -H "Content-Type: application/json" -X GET https://sandbox.unbabel.com/tapi/v2/mt_translation/"uid"/

uid: uid from the answer to the request

Answer to get request comes in the form:

{"source_language": "pt", "status": "deliver_ok", "target_language": "en", "text": "cabrão", "text_format": "text", "translatedText": "bastard", "uid": "7020203a4a"}

About

App made for the Pixels Camp Hackaton

License:MIT License


Languages

Language:Java 100.0%