3.0.2 • Published 7 years ago

overwatch-stats v3.0.2

Weekly downloads
2,039
License
ISC
Repository
-
Last release
7 years ago

Overwatch Stats v3 npm.io

Overwatch Stats Reporting API

Built by Jack Baron

Usage

In order to cut down on rate limiting, v3 has a caching system of sorts. This means you need to load data and then pass it to the OWStats class as a paramter. This can be done by doing:

const OWStats = require('overwatch-stats')
OWStats.load('lolPants#2204')
  .then(data => {
    let stats = new OWStats(data)
    // Stats Object available for use
  })

Methods

All methods return as Promises. This is for easy chaining.


.getRegions()

Returns an array of available regions for the user.

.getActiveRegion()

Returns a string of the user's most active region.
Determined by the highest player level.

.getData(region)

Region parameter is optional.
If not specified, defaults to most active region.

Returns an object with all the data you could ever want. Try it!

Credits

  • OWAPI: Their wonderful API
  • VisionMedia: Superagent Library
3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.3.1

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.2

7 years ago