Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Twilio Best Practices

You're reading from   Twilio Best Practices Learn how to build powerful real-time voice and SMS applications with Twilio

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781782175896
Length 178 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Interacting with the API

Twilio's REST APIs are accessed over HTTP, that is to say, you make an HTTP request with the appropriate method, which is either GET, POST, PUT, or DELETE, and Twilio responds with data that represents the object you've created, read, updated, or deleted.

Fortunately, Twilio make our lives easier by providing API libraries in a range of languages. These are wrappers around the raw HTTP requests that Twilio understands, letting us interact with the API in a way that fits with the language we're working in.

At the time of writing, first-party API libraries (that is, libraries built by Twilio) are available in PHP, Ruby, Java, C#, Python, Node.js, and Apex (Salesforce's proprietary language). We'll want to use these when working with Twilio in our applications for the sake of simplicity and testability.

When getting started, it can be helpful to get a feel for working with the API by building the actual HTTP requests ourselves. There are a range...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime