Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added rbgLadder method.

  • Loading branch information...
commit 3cddc6707e9a34215963a92d96e14249abf3ecca 1 parent 39d3d73
@xtian authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 index.js
View
15 index.js
@@ -122,6 +122,21 @@ armory.item = function(options, callback) {
})
}
+// Retrieves an array of rated battleground ladder information.
+armory.rbgLadder = function(options, callback) {
+ var path = '/pvp/ratedbg/ladder'
+
+ options.query = buildQuery(['asc', 'page', 'size'], options)
+
+ if (callback) {
+ var cb = function(err, body, res) {
+ var data = getKey(body, 'bgRecord')
+ callback.call(this, err, data, res)
+ }
+ }
+
+ return this._get(path, options, cb)
+}
// Retrieves array of realm objects with status info
armory.realmStatus = function(options, callback) {
Please sign in to comment.
Something went wrong with that request. Please try again.