Translate the provided message.
URL | Requires Auth | HTTP Method |
|
|
|
Argument | Example | Required | Description |
|
| Required | The message's id to be translated. |
|
| Optional | The target language that the message will be translated. |
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \-H "X-User-Id: Z3cpiYN6CNK2oXWKv" \-H "Content-type:application/json" \http://localhost:3000/api/v1/autotranslate.translateMessage \-d '{"messageId": "Fq7sQNSnDEfzj8qoS","targetLanguage": "en"}'
{"message": {"_id": "Fq7sQNSnDEfzj8qoS","rid": "GENERAL","msg": "Isso é um teste","ts": "2019-06-27T15:35:20.753Z","u": {"_id": "pC6Z2N2ijivxdsYSu","username": "marcos","name": "marcos"},"_updatedAt": "2019-06-27T15:47:01.486Z","mentions": [],"channels": [],"translations": {"en": "This is a test"}},"success": true}
Version | Description |
1.3.0 | Added |