Created
December 19, 2019 16:53
-
-
Save BMU-Verlag/1b5f201948e4b3694948d04b2c8ab330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = "https://translate.yandex.net/api/v1.5/tr.json/translate?key=<API-key>&text=" + input + "&lang=" + languages; | |
var xhttp = new XMLHttpRequest(); | |
xhttp.onreadystatechange = function() { | |
if (this.readyState == 4 && this.status == 200) { | |
console.log(this.responseText); | |
} | |
}; | |
xhttp.open("POST", url, true); | |
xhttp.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment