Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v0.1.1
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (25 sloc) 0.852 kB

node-armory

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

Installation

  npm install armory

Supported Methods

  • realmStatus
    • realms (optional): String or array containing realm name(s). Defaults to '' which returns all realms.
    • region (optional): two-letter string containing region code. Defaults to 'us', but can be set through the defaultregion property (i.e., armory.defaultregion = 'eu';).
    • callback(error, response)

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) {
   
 });
Jump to Line
Something went wrong with that request. Please try again.