Skip to content

alexzedim/battlenet-api-wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

299 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning! This fork is already deprecated. If you are looking for a library to access Blizzard Battle.net API, try Lukem's BlizzAPI

Battle.net API Wrapper

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

Installation

$ npm install --save "git+https://github.com/AlexZeDim/battlenet-api-wrapper.git"

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';  
const providedToken = '';
const region = 'eu';
const locale = 'en_GB';
  
(async function() {  
   const bnw = new battleNetWrapper();  
   await bnw.init(clientId, clientSecret, providedToken, region, locale);
   /* make request here with bnw.className.methodName(..args) */
}());  

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.

WoWCommunity endpoints has been deprecated since 16 March 2020 and no longer working. (See this thread)

Having issues, wanna contribute or another crazy idea?

Create a PR or post an issue in this fork (reviewed by me)

Or make PR, post an issue at the origin source (reviewed by QuadDamn)

License

The original library has been made by QuadDamn

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

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 98.8%
  • JavaScript 1.2%