hub.eb?material_id=802
Communicate

Twilio SMS

Send SMS messages.

Overview

The Twilio SMS Data Connector uses Twilio's Messaging API to send SMS messages.

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.

  • twilio.sendSms send an SMS message to a specified phone number.
  • twilio.getSms retrive details of a sent message.

Code Example:

// Send an SMS to +447551008330 with data from a previously created Content Template, 
//  referenced by a content id, and substituting 'Brian' into its contents.
var sms = connectors.verjio.twilio.sendSms(
    '+441234567890', 
    '<your content id>',
     {1: "Brian"} );

// Check the sending state of the SMS
var response = connectors.verjio.twilio.getSms(sms.sid);
if (response.status === connectors.verjio.twilio.sentStatus.SENT) {
  event.owner.addInfoMessage(`The message was sent ${response.date_sent}`);
}

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.

Documentation

Installation

Install this Data Connector into your Workspace in the Verj.io Studio:

  1. Right-click on the location in the Entity Tree you want the Data Connector to be added.
  2. Select New >  Data Connector from the context menu.
  3. In the resulting dialog, select this Data Connector from the list of available Data Connectors.
  4. Click OK to download it into your Workspace.

Once the Data Connector is installed into your Workspace, it can be added to any number of Forms:

  1. Open the Form by double-clicking it in the Entity Tree.
  2. Drag the downloaded Data Connector from the Entity Tree into the Form's  Data Connectors View.

The Twilio Data Connector must be installed before this Data Connector can be used. To connect to Twilio at runtime, the Twilio Data Connector must be configured with an Twilio Account SID and Auth Token.

For comprehensive information on how to customise, use, and configure Data Connectors, please refer to the Support section.

Support

Twilio SMS Support

Data Connector Support

Twilio Support

Compatible Verj.io Versions

FromV5.13

Required Plugins

Support

Supported by Ebase.