Book Image

Twilio Cookbook: Second Edition

By : Roger Stringer
Book Image

Twilio Cookbook: Second Edition

By: Roger Stringer

Overview of this book

Table of Contents (20 chapters)
Twilio Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up the client


In this recipe, we're going to set up a simple Twilio Client app.

We'll set up our app to let you make a call by pushing a button. For now, the call will just be a welcome message.

How to do it…

This first recipe will set up a basic Twilio Client app in the following manner:

  1. First, since this recipe is using Twilio Client, you need to set up a TwiML app under your account as shown in the following screenshot:

  2. Click on the Create TwiML App button and enter a name for your app. Leave the Voice Request URL field empty for now; just add a name in the Friendly Name field and click on Save Changes as shown in the following screenshot:

  3. Now, go back to the application list, and you will see your new application. Look at the line directly beneath the name of your application. That is your application SID; copy it as you will need it for this recipe.

  4. Download the Twilio Helper Library available at https://github.com/twilio/twilio-php/zipball/master and unzip it.

  5. Upload the Services...