overwatch-api-wrapper
v1.0.0
Published
A wrapper for the Overwatch API
Downloads
1
Readme
Overwatch API Wrapper
NOTE: This is currently just a placeholder and code skeleton since the Overwatch API has not yet been publicly exposed.
Requirements
Get an Access Token from Blizzard https://dev.battle.net/io-docs
Usage
Setup:
var access_token = 'xxxxxxxxxxxxxxxxxxxxx';
var locale = 'enUS';
var Overwatch = require('overwatch-api');
client = new Overwatch(access_token, locale);
Developers
Tests require an env-vars.js file in /test directory with access token field:
module.exports = {
'BLIZZARD_ACCESS_TOKEN': 'xxxxxxxxxxxxxxxxxxxxxxx'
};
Run with mocha
or mocha debug test/ -R spec
Contributing
- Fork it ( https://github.com/[my-github-username]/d3-leaderboard-node/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request