Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple node.js wrapper around Blizzard's REST API for World of Warcraft.
JavaScript
tag: v0.1.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tests
.gitignore
LICENSE.md
Makefile
README.md
index.js
package.json

README.md

node-armory

A simple node.js wrapper around Blizzard's REST API for World of Warcraft.

Installation

  npm install armory

Documentation

Methods

  • realmStatus
    • realms (optional): String or array containing realm name(s). All realms returned if empty.
    • region (optional): Two-letter string containing region code. Uses defaultRegion property if empty.
    • callback(error, response)

Properties

  • defaultRegion: Sets battle.net sub-domain to request. Defaults to 'us'.

Usage

 var armory = require('armory');
 
 // All realms
 armory.realmStatus(function(err, res) {
   var realms = {};
   
   for (var i = res.length; i--;) {
     realms[res[i].slug] = res[i];
   }
 });
 
 // Specific realms
 armory.realmStatus(['Shadowmoon', 'Nazgrel'], function(err, res) {
   
 });
Something went wrong with that request. Please try again.