Twilio Cookbook


Twilio Cookbook
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Teaches software developers to programmatically make and receive phone calls and send and receive text messages using Twilio's web service APIs
  • The only book that teaches you how to set up your own conference calling system or how to build a PBX for your company, or how to build a local solution that can tell you the weather where you are
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

Book Details

Language : English
Paperback : 266 pages [ 235mm x 191mm ]
Release Date : September 2013
ISBN : 1782166068
ISBN 13 : 9781782166061
Author(s) : Roger Stringer
Topics and Technologies : All Books, Networking and Servers, Cookbooks, Networking & Telephony

Table of Contents

Preface
Chapter 1: Into the Frying Pan
Chapter 2: Now We're Cooking
Chapter 3: Conducting Surveys via SMS
Chapter 4: Building a Conference Calling System
Chapter 5: Combining Twilio with Other APIs
Chapter 6: Sending and Receiving SMS Messages
Chapter 7: Building a Reminder System
Chapter 8: Building an IVR System
Chapter 9: Building Your Own PBX
Chapter 10: Digging into OpenVBX
Index
  • Chapter 1: Into the Frying Pan
    • Introduction
    • Adding two-factor voice authentication to verify users
    • Using Twilio SMS to set up two-factor authentication for secure websites
    • Adding order verification
    • Adding the Click-to-Call functionality to your website
    • Recording a phone call
    • Setting up a company directory
    • Setting up Text-to-Speech
    • Chapter 2: Now We're Cooking
      • Introduction
      • Tracking account usage
      • Screening calls
      • Buying a phone number
      • Setting up a voicemail system
      • Building an emergency calling system
      • Chapter 3: Conducting Surveys via SMS
        • Introduction
        • Why use PDO instead of the standard MySQL functions?
        • Letting users subscribe to receive surveys
        • Building a survey tree
        • Sending a survey to your users
        • Adding tracking for each user
        • Listening to user responses and commands
        • Building a chart of responses
        • Chapter 4: Building a Conference Calling System
          • Introduction
          • Scheduling a conference call
          • Sending an SMS to all participants at the time of the call
          • Starting and recording a conference
          • Joining a conference call from the web browser
          • Monitoring the conference call
          • Muting a participant
          • Chapter 5: Combining Twilio with Other APIs
            • Introduction
            • Searching for local businesses via text
            • Getting the local weather forecast
            • Searching for local movie listings
            • Searching for classifieds
            • Getting local TV listings
            • Searching Google using SMS
            • Searching the stock market
            • Getting the latest headlines
            • Chapter 6: Sending and Receiving SMS Messages
              • Introduction
              • Sending a message from a website
              • Replying to a message from the phone
              • Forwarding SMS messages to another phone number
              • Sending bulk SMS to a list of contacts
              • Tracking orders with SMS
              • Sending and receiving group chats
              • Sending SMS messages in a phone call
              • Monitoring a website
              • Chapter 7: Building a Reminder System
                • Introduction
                • Scheduling reminders via text
                • Getting notified when the time comes
                • Retrieving a list of upcoming reminders
                • Canceling an upcoming reminder
                • Adding another person to a reminder
                • Chapter 8: Building an IVR System
                  • Introduction
                  • Setting up IVRs
                  • Screening and recording calls
                  • Logging and reporting calls
                  • Looking up HighriseHQ contacts on incoming calls
                  • Getting directions
                  • Leaving a message
                  • Sending an SMS to your Salesforce.com contacts
                  • Chapter 9: Building Your Own PBX
                    • Introduction
                    • Getting started with PBX
                    • Setting up a subaccount for each user
                    • Letting a user purchase a custom phone number
                    • Allowing users to make calls from their call logs
                    • Allowing incoming phone calls
                    • Allowing outgoing phone calls
                    • Deleting a subaccount
                    • Chapter 10: Digging into OpenVBX
                      • Introduction
                      • Building a call log plugin
                      • Building a searchable company directory
                      • Collecting Stripe payments
                      • Tracking orders
                      • Building a caller ID routing plugin
                      • Testing call flows

                      Roger Stringer

                      Roger Stringer has been a PHP developer since 2001 and has been working on projects of all sizes for companies all over the world. He has formed several start-ups over the years and most of them have been powered by Twilio to provide services.

                      When not working on the web, Roger can be found reading, cooking, and spending time with his daughter, Kaitlyn, at the local farmer's markets.

                      Roger is the founder of The Interviewer, a Twilio-powered startup, which makes interviewing more efficient by helping with scheduling, contact management, and conducting and recording interviews.

                      Sorry, we don't have any reviews for this title yet.

                      Code Downloads

                      Download the code and support files for this book.


                      Submit Errata

                      Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                      Errata

                      - 1 submitted: last submission 27 Feb 2014

                      Page no: 44

                      The code is:

                      $response->Respond();

                      It should be:

                      echo $response;

                      (Note that this change is due to a recent update to Twilio's PHP library.)

                      Sample chapters

                      You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                      Frequently bought together

                      Twilio Cookbook +    SolarWinds Orion Network Performance Monitor =
                      50% Off
                      the second eBook
                      Price for both: $45.60

                      Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                      What you will learn from this book

                      • Add 2-factor authentication to your web apps to verify your users
                      • Set up a company directory
                      • Buy a phone number
                      • Conduct surveys using SMS
                      • Set up a conference calling system
                      • Use APIs to build a local search system for finding businesses, movies, and weather forecasts
                      • Delve into SMS messaging and learn how to set up order tracking, bulk SMS sending, and a group chat system
                      • Set up an appointment reminder using SMS
                      • Build an interactive IVR menu system
                      • Build your first PVR
                      • Learn about OpenVBX plugins to extend its existing functionality
                      • Verify that a person is answering the phone and not a machine

                      In Detail

                      Have you ever wanted to integrate phone features into a project you were working on? Maybe you wanted to send SMS messages to your customers about the latest sales? Maybe you want to set up a company directory with voice mail? Or maybe you want to add two factor authentication to your web sites to verify your users? Since Twilio was launched in 2007, developers have had a way to do these tasks. The power of Twilio’s API is huge and lets you add any type of phone solution to your web site from 2-factor authentication for verifying your users, to setting up a company directory and a voice mail system. The possibilities are endless.

                      "Twilio Cookbook" is your Swiss army knife for Twilio development, providing you with a number of clear step-by-step exercises. It helps you take advantage of the real power of the Twilio API, and gives you a good grounding in using it in your websites. This book looks at the Twilio API, and breaks down the mystery and confusion that surrounds adding telephone functionality to your websites. As you go through the recipes, you will learn how to take advantage of the Twilio API quickly and painlessly.

                      You will learn how to build your own IVR system, company directory, and voicemail box, and also how to set up a 2-factor authentication system to verify users, track orders via SMS, send surveys using SMS, allow users to buy phone numbers, set up and delete sub-accounts, and check to see if a human is answering a phone call. We will also combine Twilio with other APIs to build a handy local search system such as a local business search, movie listings search, and web search. If you want to take advantage of using Twilio’s API to add telephone functionality to your websites, then this book is for you.

                      "Twilio Cookbook' will leave you with a black belt in Twilio development and enable you to integrate the API into your websites.

                      Approach

                      This book is a practical, hands-on guide that provides the reader with a number of clear, step-by-step exercises.

                      Who this book is for

                      This book is great for developers who already have knowledge of PHP and MySQL and who want to learn about integrating Twilio’s API into their websites for telephone solutions.

                      Code Download and Errata
                      Packt Anytime, Anywhere
                      Register Books
                      Print Upgrades
                      eBook Downloads
                      Video Support
                      Contact Us
                      Awards Voting Nominations Previous Winners
                      Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                      Resources
                      Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software