Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Twilio Best Practices
  • Toc
  • feedback
Twilio Best Practices

Twilio Best Practices

By : Rogers
4.5 (4)
close
Twilio Best Practices

Twilio Best Practices

4.5 (4)
By: Rogers

Overview of this book

If you have experience with at least one programming language and are looking to integrate Twilio into your applications, then this book is for you.
Table of Contents (10 chapters)
close
9
Index

The callback request tool

First up, we're going to build a callback request tool that is suitable for any website.

Popular across the Internet, such tools are great for small businesses that want to let their customers get in touch with them without the annoying need to wait on hold.

There are four components of this tool:

  1. A simple website with a form for collecting customer details
  2. A PHP page that initiates a call to the customer who requested it when a member of staff clicks on a link
  3. A short piece of TwiML to power this call
  4. A status callback page that listens for a request from Twilio to let it know that a call was answered so the database can be updated

Let's get started.

Preparing the project

To start, we'll need to get some dependencies in order and prepare a configuration and setup file that can be included in all of our pages.

Installing the Twilio API library

First, we'll install the Twilio PHP library using Composer.

To do that, first install Composer on your machine...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete