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 needle = require("needle"); | |
needle.get("https://api.quizlet.com/2.0/search/sets?client_id=" + id + "&q=" + key + "&whitespace=1", function(e, r) { | |
// handling the response here | |
} | |
// id - your developer key, key - what you are searching for |
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 needle = require("needle"); | |
var url = "https://translate.yandex.net/api/v1.5/tr.json/translate?key=" + key + "&lang=" + lang + "&text=" + words[0]; | |
for(var i = 1; i < words.length; i++) { | |
url += ("%3F&text=" + words[i]); | |
} | |
needle.get(url, function(e, r) { | |
// handling the response here | |
} | |
// key - your API key, lang - target language, words - array of words to translate |