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

Looking up HighriseHQ contacts on incoming calls


I'm using Highrise for this example, as that is the CRM I use. But you can quickly modify this for any CRM.

This IVR integration will check your incoming call and see if the phone number exists in your Highrise contacts. If it does, it will add the caller's name to the database record.

You'll need a Highrise account to do this, and you can get one at http://highrisehq.com.

There are two credentials you'll need for this, your account name and your API key.

You can get your account name from the address bar of your browser:

And then, you can find your API key by clicking My Account and then going to API token:

Getting ready

The complete source code for this recipe can be found in the Chapter8/Recipe4/ folder.

How to do it…

We're going to enhance our IVR system to perform a look-up on our HighriseHQ account and create a log if the caller is known to us. When we view log.php, we will see whether the caller was known to us or not from Highrise.

  1. Download...