Skip to content

Eblancho/battlenet-api-wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battle.net API Wrapper

Greenkeeper badge

FORKED FROM https://github.com/QuadDamn/battlenet-api-wrapper The original code is not fully compatible with the new battle.net API, especially the WoW detail API (tbh, it's the only one I care about and maintain), that's why I'm adapting it because I need a wrapper and if I can't start empty, it's perfect !

WARNING : ONLY WOW RETAIL IS FULLY COMPATIBLE CUZ THE NEW VERSION OF BNET API

THE OTHER ENDPOINT MAYBE COMPATIBLE BUT NOT TESTED YET

A promised-based Node.js wrapper for the Battle.net Community and Data APIs (supports WoW, WoW Classic, SC2, D3, and Hearthstone).

NEW SINCE FORKED

  • getPlayableSpecializationMedia

COMPATIBILITY UPDATED SINCE FORKED

  • getAchievement
  • getBossMasterList
  • getBoss
  • getCharacterProfile

DEPRECATED SINCE FORKED

  • getChallengeModeRealmLeaderboard
  • getChallengeModeRegionLeaderboard

Installation

$ npm install --save battlenet-api-wrapper-v2

Prerequisites / General Information

Usage

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.

Having issues or have questions?

Post an issue and it will be responded to ASAP!

Want to contribute?

Feel free! Create a Pull Request and I'll review it ASAP!

License

Battle.net API Wrapper is released under the MIT License.

About

A promised-based Node.js + Typescript wrapper for the Battle.net Community and Data APIs (supports WoW, WoW Classic, SC2, D3, and Hearthstone).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 98.7%
  • JavaScript 1.3%