Skip to content

A promise-based Node.JS library for the Blizzard Battle.net Community Platform API

License

Notifications You must be signed in to change notification settings

RaiderIO/blizzard.js

 
 

Repository files navigation

Blizzard.js

Travis Codecov Greenkeeper badge Gitter

Blizzard.js is a promise-based Node.js library for the Blizzard Community Platform API.

Install

Install blizzard.js and save to your package.json dependencies in one easy step:

With yarn:

$ yarn add blizzard.js

With npm:

$ npm install blizzard.js --save

Usage

Step 1: require() and initialize() Blizzard.js within your application:

const blizzard = require('blizzard.js').initialize({ apikey: BLIZZARD_API_KEY });

Step 2: Call the API methods to request data:

blizzard.wow.character(['profile'], { origin: 'us', realm: 'amanthul', name: 'charni' })
  .then(response => {
    console.log(response.data);
  });

Step 3: ???

Step 4: Profit.

Battle.net API Key

Your private Blizzard API key must be passed to .initialize(). Please see the documentation at the Blizzard Developer Portal to obtain your own Blizzard API key.

About

A promise-based Node.JS library for the Blizzard Battle.net Community Platform API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%