@solomid/node-gg

3.0.1 • Public • Published

Node.js Client for the Champion.GG API

NPM

Build Status via Travis CI

The official Champion.GG API Node.js Client.

installation

npm i @solomid/node-gg

If you really need an ES5 version:

npm i @solomid/node-gg@1.1.0

usage

First, instantiate the wrapper with your api key

const GG = require('node-gg');
const gg = GG.init('YOUR_KEY');

Then you gain access to all current endpoints of the API! All but initialization require a callback function and some also require either role or champion_id, along with an optional object with ...options. These options are passed as query string params and are page, limit, elo, sort and champData. For more details on these parameters, please refer to the Champion.GG API documentation.

The methods are:

Method Parameters
.init api_key
.statistics.overall options, cb
.statistics.general options, cb
.champions.all options, callback
.champions.specific champId, options, callback
.champions.specificRole champId, role, options, callback
.champions.specificMatchup champ1Id, champ2Id, role, options, callback

tests

npm test

contributing

Feel free to contribute, let's just try to keep it readable :)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.1
    1
  • 3.0.0
    0
  • 2.0.0
    0
  • 1.1.0
    0

Package Sidebar

Install

npm i @solomid/node-gg

Weekly Downloads

1

Version

3.0.1

License

MIT

Last publish

Collaborators

  • programmar
  • sandeep1995
  • daliwali
  • adilvirani
  • va1729