Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added battlePetStats method.

  • Loading branch information...
commit 39d3d7348271f48e80cda255d94718e4d994f2c8 1 parent 25de60d
@xtian authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 index.js
View
9 index.js
@@ -64,6 +64,15 @@ armory.arenaLadder = function(options, callback) {
return this._get(path, options, cb)
}
+// Retrieves object describing a battle pet.
+armory.battlePetStats = function(options, callback) {
+ var path = '/battlePet/stats/' + options.id
+
+ options.query = buildQuery(['breedId', 'level', 'qualityId'], options)
+
+ return this._get(path, options, callback)
+}
+
// Retrieves array of auction data file URLs
armory.auction = function(options, callback) {
var path = '/auction/data/' + options.name
Please sign in to comment.
Something went wrong with that request. Please try again.