O'Reilly logo

Twilio Cookbook by Roger Stringer

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

Adding another person to a reminder

I first had to add this functionality when adding my wife to reminders. It's worked well for me since, so here it is.

Getting ready

The complete source code for this recipe can be found in the Chapter7/Recipe5 folder.

How to do it…

Let's add another person to our reminders. We're going to add the ability to add a second phone number to a reminder and have them get notified when you get notified.

  1. Download the Twilio Helper Library from https://github.com/twilio/twilio-php/zipball/master and unzip it.
  2. Upload the Services/ folder to your website.
  3. Upload sql.sql to your database
  4. Upload config.php to your website and make sure the following variables are set:
    <?php session_start(); $accountsid = '';//YOUR TWILIO ACCOUNT SID ...

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