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

How does Twilio Client work?

There are four steps to follow when working with Twilio Client:

  1. Setting it up with your credentials
  2. Placing outgoing calls
  3. Dealing with incoming calls
  4. Interacting with calls currently in progress

Setting up the client

To get started, you'll use your language's Twilio API library to generate a Capability Token. This gives the client the right to make and/or receive calls using your account.

The following are embedded in this token:

  • Your account credentials, ensuring that only you can give clients the right to make and receive calls using your Twilio credit
  • The identifier that will be used to receive calls (if the client is allowed to receive calls)
  • The Twilio application SID that will be used to place outgoing calls (if the client is allowed to place outgoing calls)

As an example, using the PHP library, we'll generate a Client token like this:

$accountSid = '<your account SID>';
$authToken  = '<your auth token>';
$capability...
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