Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #10 from jharlap/provisioning_api_query_numbers

Exposed provisioning API methods to view exchanges and available addresses
  • Loading branch information...
commit c85aec1f766d95c0aa949678da19304652808b52 2 parents 49feb97 + 51f3e34
Mark Headd mheadd authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/tropo-provisioning.js
7 lib/tropo-provisioning.js
View
@@ -60,11 +60,16 @@ TropoProvision.prototype.viewAddresses = function(applicationID, type, address)
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;
Please sign in to comment.
Something went wrong with that request. Please try again.