0.0.2 • Published 6 years ago

lingualeo-api v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Lingualeo.ru API

Small wrapper for Lingualeo.ru.

Thus Lingualeo has no public API - it's just a number of functions, which allow to do some stuff. More information might be found at sources of Lingualeo Chrome Addon

Usage example:

lingualeoApi
  .login(email, password)
  // .then(data => console.log("Login:", util.inspect(data)))
  .then(_ => lingualeoApi.getTranslates(WORD))
  .then(data => {
    console.log(`Translates for ${WORD}`, util.inspect(data));
    return data;
  })
  .then(list => lingualeoApi.addWord(WORD, list[0].value))
  .then(data => console.log("addWord", util.inspect(data)))
  .catch(err => console.error("Error", err));
0.0.2

6 years ago

0.0.1

7 years ago