How to use the yandex translate api key in a script
On the Yandex site, I received the API KEY According to the instructions, I read not what I did not understand..
Here is such a function
https://translate.yandex.net/api/v1.5/tr.json/getLangs ?
key=<API-ключ>
& [ui=<код языка>]
& [callback=<имя callback-функции>]
Which I don't know.. how can I use the YANDEX API KEY on a regular site using a regular script or JQUERY ?
0
Author: Samir Mamedov, 2016-03-25
1 answers
Greetings
Example of using
var url = 'https://translate.yandex.net/api/v1.5/tr.json/getLangs?key=trnsl.1.1.20160325T130025Z.a7384fd1c9198dd9.a93fe8c8077b1400a27&ui=ru';
$.getJSON(url, function(data) {
data; // что то делаем с ответом в случае если все успешно
});
1
Author: Maxim Bogdanov, 2016-03-25 13:54:52