A promised-based Node.js wrapper for the Battle.net Community and Data APIs (supports WoW, WoW Classic, SC2, D3, and Hearthstone).
npm install battlenet-api-wrapper
A promised-based Node.js wrapper for the Battle.net Community and Data APIs (supports WoW, WoW Classic, SC2, D3, and Hearthstone).
$ npm install --save battlenet-api-wrapper
- To get your Client ID and Client Secret needed for this library, please refer to the steps in the Battle.net API Getting Started documentation.
- Battle.net API Documentation Reference: https://develop.battle.net/documentation
The basic implementation of this library is as follows:
```
const battleNetWrapper = require('battlenet-api-wrapper');
const clientId = 'YOUR_CLIENT_ID';
const clientSecret = 'YOUR_CLIENT_SECRET';
(async function() {
const bnw = new battleNetWrapper();
await bnw.init(clientId, clientSecret);
}());
Once you have the battleNetWrapper class object instantiated, you then have access to all of the classes
that exist under that umbrella. For each of the classes below, you will see a link to the full abstraction
documentation. Each of functions are available on the respective class objects.
- bnw.Diablo3Community Usage Documentationbnw.Diablo3GameData
- Usage Documentationbnw.HearthstoneGameData
- Usage Documentationbnw.Starcraft2Community
- Usage Documentationbnw.Starcraft2GameData
- Usage Documentationbnw.WowCommunity
- Usage Documentationbnw.WowGameData
- Usage Documentationbnw.WowProfileData
- Usage Documentationbnw.WowClassicGameData` Usage Documentation
-
Post an issue and it will be responded to ASAP!
Feel free! Create a Pull Request and I'll review it ASAP!
- Add in test coverage.
Battle.net API Wrapper is released under the MIT License.