1.0.1 • Published 10 years ago

opgg-mmr v1.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

opgg-mmr

Build Status Dependency Status

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).