Book Image

Twilio Best Practices

Book Image

Twilio Best Practices

Overview of this book

Table of Contents (15 chapters)
Twilio Best Practices
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 1. Working with TwiML

TwiML is a Twilio-specific XML-based language that is used within a Twilio application to describe what Twilio should do when an incoming call or message hits one of your Twilio phone numbers. TwiML is our way of asking Twilio to do things. Therefore, it's fitting that the XML elements we use are called verbs. For example, we have verbs such as Play, Dial, Record, and Gather, and they are accompanied by nouns such as Number, Client, and Conference.

In this chapter, you will learn the following topics:

  • What TwiML is

  • How TwiML fits into your Twilio application

  • How to set up an inbound phone number

  • The data you get from Twilio for inbound calls

  • How to use all of the TwiML verbs including <Play>, <Gather>, and <Dial>

  • Best practices and tips for working with TwiML