Twilio.listPhoneNumbers()

List the available phone numbers for a particular account.

Usage

Hover over inputs/exits for more info.

var Twilio = require('machinepack-twilio');


// List the available phone numbers for a particular account.

Twilio.listPhoneNumbers({

accountSid: 'DZe5eafd3c69b1e74example5852c04a9102',

authToken: 'Dafd4example5852c3c69bZe5e1e704a9102',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

accountSid required

The "account sid" associated with your Twilio account.

'DZe5eafd3c69b1e74example5852c04a9102'
authToken required

The "auth token" associated with your Twilio account.

'Dafd4example5852c3c69bZe5e1e704a9102'

Exits

error

An unexpected error occurred.

success

OK.

[ '+15128459328' ]