1.0.1 • Published 11 years ago
opgg-mmr v1.0.1
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-mmrAPI
var mmr = require('opgg-mmr');mmr(username, callback)
Queries op.gg for String username's MMR. Calls callback(error, response).