FullContact.getPersonFromPhone()

Retrieves contact information by phone number.

Read the docs here: https://www.fullcontact.com/developer/docs/person/

Usage

Hover over inputs/exits for more info.

var FullContact = require('machinepack-fullcontact');


// Retrieves contact information by phone number.

FullContact.getPersonFromPhone({

apiKey: '00011122233344455',

phone: '123-555-4444',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// FullContact says your API request was malformed

malformedRequest: function () {

 

},

// FulLContact says your API key is invalid or your rate limit has been reached.

apiKeyProblem: function () {

 

},

// FullContact says you have an invalid or missing query parameter.

queryParamProblem: function () {

 

},

// FullContact has queued the search and will have an answer shortly. If you don't want to wait, use the webhook input

queued: function () {

 

},

// FullContact says you have to wait 24 hours to try this query again.

wait24Hours: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

apiKey required

Your FullContact API key

'00011122233344455'
phone required

The phone number of the person you are looking up

'123-555-4444'

Exits

error

An unexpected error occurred.

malformedRequest

FullContact says your API request was malformed

apiKeyProblem

FulLContact says your API key is invalid or your rate limit has been reached.

queryParamProblem

FullContact says you have an invalid or missing query parameter.

queued

FullContact has queued the search and will have an answer shortly. If you don't want to wait, use the webhook input

wait24Hours

FullContact says you have to wait 24 hours to try this query again.

success

OK.