UNPKG

lol-js

Version:

Node.js bindings for the Riot API, with caching and rate limiting

13 lines (12 loc) 291 B
var lol = require('.'); var lolClient = lol.client({ apiKey: 'e07d5eed-f65f-49a0-9c9c-e5d48051fd54' }); lolClient.getSummonersByName('na', ['jáýce']) .then(function (data) { console.log("Found ", data); lolClient.destroy(); }) .catch(function (err) { console.log(err); });