Twilio

REST Quickstart

Overview

The goal of this quickstart is to build an application that initiates an outgoing phone call and gets a list of previous calls using the Twilio REST API. The Twilio REST API allows you to make outgoing calls and query meta-data about your account such as phone numbers, calls, and recordings.

Accessing the REST API

In order access the Twilio REST API you will need a basic HTTP/HTTPS client to perform that actual requests. Fortunately, Twilio gives you a little help making HTTP requests from your web application. Head over to the Helper Libraries page and download the code and examples for your preferred language. If you don't see your language, howl at us in the forums!

In this quickstart we'll use PHP and the Twilio REST Helper Library for PHP, but you could using almost any language or HTTP tool like curl or wget to make requests.

Code

You can download the (minimal) code used in this example if you want:

Next: Initiating an Outgoing Call