O'Reilly logo

Twilio Best Practices by Tim Rogers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required