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

Summary


In this chapter, we learned what TwiML is and the three ways we'll use it: handling inbound calls, dealing with incoming messages, and telling Twilio what to do when we place outgoing calls.

We bought a phone number and then hooked it up to our TwiML. We also saw the data we get from Twilio in webhooks when there's an incoming call or message.

We respond to the webhooks with TwiML made up of verbs and nouns in order to decide what happens with the call, for instance, playing sound clips or sending SMS messages. For the various verbs, we saw helpful tips and tricks and learned best practices in order to work with TwiML more generally.

In the next chapter, we'll build on what we've learned and will start working with Twilio's REST API that, apart from allowing us to place outgoing calls and messages, will give us access to the wealth of data in our Twilio account.