PacktLib: Twilio Cookbook

Twilio Cookbook


About the Author

About the Reviewer


Into the Frying Pan


Adding two-factor voice authentication to verify users

Using Twilio SMS to set up two-factor authentication for secure websites

Adding order verification

Adding the Click-to-Call functionality to your website

Recording a phone call

Setting up a company directory

Setting up Text-to-Speech

Now We're Cooking


Tracking account usage

Screening calls

Buying a phone number

Setting up a voicemail system

Building an emergency calling system

Conducting Surveys via SMS


Why use PDO instead of the standard MySQL functions?

Letting users subscribe to receive surveys

Building a survey tree

Sending a survey to your users

Adding tracking for each user

Listening to user responses and commands

Building a chart of responses

Building a Conference Calling System


Scheduling a conference call

Sending an SMS to all participants at the time of the call

Starting and recording a conference

Joining a conference call from the web browser

Monitoring the conference call

Muting a participant

Combining Twilio with Other APIs


Searching for local businesses via text

Getting the local weather forecast

Searching for local movie listings

Searching for classifieds

Getting local TV listings

Searching Google using SMS

Searching the stock market

Getting the latest headlines

Sending and Receiving SMS Messages


Sending a message from a website

Replying to a message from the phone

Forwarding SMS messages to another phone number

Sending bulk SMS to a list of contacts

Tracking orders with SMS

Sending and receiving group chats

Sending SMS messages in a phone call

Monitoring a website

Building a Reminder System


Scheduling reminders via text

Getting notified when the time comes

Retrieving a list of upcoming reminders

Canceling an upcoming reminder

Adding another person to a reminder

Building an IVR System


Setting up IVRs

Screening and recording calls

Logging and reporting calls

Looking up HighriseHQ contacts on incoming calls

Getting directions

Leaving a message

Sending an SMS to your contacts

Building Your Own PBX


Getting started with PBX

Setting up a subaccount for each user

Letting a user purchase a custom phone number

Allowing users to make calls from their call logs

Allowing incoming phone calls

Allowing outgoing phone calls

Deleting a subaccount

Digging into OpenVBX


Building a call log plugin

Building a searchable company directory

Collecting Stripe payments

Tracking orders

Building a caller ID routing plugin

Testing call flows