The Twilio Lookup Data Connector uses Twilio to retrieve information about a phone number.
This Data Connector extends the functionality of the Twilio Data Connector.
Once installed and added to a Form, you can access this Data Connector in the Form's server event scripts using: connectors.verjio.twilio.lookup
.
twilio.lookup.phone
retrieves information about a phone number, including its validity. Optionally, you can request additional information such as caller identity and carrier information depending on your Twilio data packages.
Code Example:
var result = connectors.verjio.twilio.lookup.phone(
'+441234567890',
['caller_name', 'line_status']
);
if (!result.valid || results.line_status.status === 'Inactive') {
event.owner.addErrorMessage('Please enter a valid phone number.');
}
For comprehensive information on how to use and develop applications with this Data Connector please refer to the Support section.
The Installation section has instructions on installing it into your Workspace.
Complete JavaScript API documentation for this Data Connector can be found in the Documentation section.