Permalink
Browse files

fix subscription statement ids method.

  • Loading branch information...
1 parent e21c43a commit fe16feff49449a94a16f2f5e8d2a619ae078264c @chjj committed Nov 21, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/charged.js
View
@@ -211,7 +211,8 @@ Charged.prototype.getStatement = function(name, callback) {
return this.get(path, callback, 'statement');
};
-Charged.prototype.getSubscriptionIds = function(name, options, callback) {
+Charged.prototype.getSubscriptionIds =
+Charged.prototype.getSubscriptionStatementIds = function(name, options, callback) {
if (!callback) {
callback = options;
options = null;
@@ -225,7 +226,7 @@ Charged.prototype.getStatementIds = function(name, options, callback) {
callback = options;
options = null;
}
- var path = '/statements/' + escape(name) + '/ids';
+ var path = '/statements/ids';
return this.get(path, options, callback, 'statement_ids');
};

0 comments on commit fe16fef

Please sign in to comment.