Skip to content

Commit

Permalink
added provisioning API methods to view exchanges and view available a…
Browse files Browse the repository at this point in the history
…ddresses of a given prefix
  • Loading branch information
jharlap committed Feb 8, 2012
1 parent 5c2a246 commit 51f3e34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tropo-provisioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,16 @@ TropoProvision.prototype.viewAddresses = function(applicationID) {
return this.makeApiCall('GET', provisioningUrlHost, path, null);
};

vviewExchanges = function() {
TropoProvision.prototype.viewExchanges = function() {
var path = provisioningUrlPath + 'exchanges';
return this.makeApiCall('GET', provisioningUrlHost, path, null);
};

TropoProvision.prototype.viewAvailableAddresses = function(prefix) {
var path = '/addresses?available&prefix='+prefix;
return this.makeApiCall('GET', provisioningUrlHost, path, null);
};

TropoProvision.prototype.makeApiCall = function(method, host, path, payload) {

var self = this;
Expand Down

0 comments on commit 51f3e34

Please sign in to comment.