Twilio Snap Pack Examples

The following examples demonstrate how to use Snaps in the Twilio Snap Pack.

Example Snaps used

Reading Messages Sent Using Twilio Programmable SMS Service

In this example we use the Twilio Read Snap to retrieve messages sent with Programmable SMS services based on certain filter parameters and pagination options. This example assumes that you have configured and authorized a valid Twilio Account (see Configure Twilio Accounts).

Creating and Sending Messages using Twilio Programmable SMS Service

In this example, we want to create a Twilio message and send it to the target phone number. To use this example, you must have a valid and authorized Twilio Account (see Configure Twilio Accounts). You must also have a Twilio phone number with sufficient balance for sending at least one message.

Modifying a Message sent through Programmable SMS

This example illustrates modifying a message sent through Programmable SMS which involves modifying the message-body from a message record while retaining the rest of the properties. We use the Twilio Modify Snap to achieve this result. To use this example you must have a valid Twilio Account (see Configure Twilio Accounts) and a Twilio phone number (including a trial phone number). You should also have sent at least one message with that Twilio phone number.

Deleting a Message Sent through Programmable SMS

In this example, we want to delete a message record sent through Programmable SMS using the Twilio Delete Snap. To use this example, you must have a valid Twilio Account (see Configure Twilio Accounts) and a Twilio phone number (including a trial phone number). You should also have sent at least one message with that Twilio phone number.