js4lol
v0.1.4
Published
Node.js League of Legends API module
Downloads
12
Maintainers
Readme
Js4LoL
##Installation
npm install js4lol
##How to use
// Import the library
var Js4LoL = require('./js4lol.js');
// Basic config
var config = {
api_key: 'YOUR-API-KEY',
debug: true
};
// Instantiate
var js4lol = new Js4LoL(config);
// Call a method with the necessary parameters
js4lol.getSummonerByName('lan', 'MicroIce', function(error, body) {
if (body)
console.log(body);
else
console.log(error);
});
Click here to see all the methods.
##About
This was made with learning purposes. Partly inspired by the LoL API Wrapper by Alejandro Perezpayá. Feel free to use or modify this code in any way.