opgg-mmr
v1.0.1
Published
Get op.gg's MMR for a League of Legends player
Downloads
24
Readme
opgg-mmr
Get op.gg's matchmaking rating (MMR) for a League of Legends player.
Example
var mmr = require('opgg-mmr');
mmr('Turtle the Cat', function(error, response) {
if (error) {
throw error;
}
console.log(response);
// => {
// => log: '',
// => tip: {
// => status: '',
// => leagueAverage: '',
// => notice: ''
// => },
// => mmr: '2,669',
// => class: ''
// => }
});
Installation
$ npm install opgg-mmr
API
var mmr = require('opgg-mmr');
mmr(username, callback)
Queries op.gg for String username
's MMR. Calls callback(error, response)
.