TwilioLookup.formatLookup()

Reformat numbers provided into local format

Usage

Hover over inputs/exits for more info.

var TwilioLookup = require('machinepack-twiliolookup');


// Reformat numbers provided into local format

TwilioLookup.formatLookup({

phoneNumber: '209 525-6325',

accountSid: 'AC2b6da5680e4cdd77db1a679e8c7a42f3',

authToken: '4135d4dba945c3d883d260148860aaaa',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Invalid or unprovided API key. All calls must have a key.

wrongOrNoKey: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

phoneNumber required

Phone number you wish to validate.

'209 525-6325'
accountSid required

Twilio Accoutn SID.

'AC2b6da5680e4cdd77db1a679e8c7a42f3'
authToken required

Your Twilio Auth Token.

'4135d4dba945c3d883d260148860aaaa'

Exits

error

An unexpected error occurred.

wrongOrNoKey

Invalid or unprovided API key. All calls must have a key.

success

OK.

'(209) 525-6325'