Home jquery How to use the Key Yandex Translate API in the Script

How to use the Key Yandex Translate API in the Script

Author

Date

Category

On the Yandex website received KEY API read read nothing without understanding ..

Here is this function

https://translate.yandex.net/api/v1.5/tr.json/getlangs?
Key = & lt; API key & gt;
 & amp; [ui = & lt; language code & gt;]
 & amp; [Callback = & LT; name Callback-function & gt;]

which I do not know ..
How to use the Key Yandex API on the usual site using the usual script or jQuery ?


Answer 1, Authority 100%

Greetings

Example of using

var url = 'https://translate.yandex.net/api/v1.5/tr.json/ Getlags? Key = TRNSL.1.1.20160325t130025z.a7384FD1C9198DD9.A93FE8C8077B1400A27 & amp; ui = ru ';
$ .getjson (URL, FUNCTION (DATA) {
  DATA; // what they do with the answer if everything is successful
});

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions