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

Chapter 5. Twilio in your language

In this chapter, we'll get to grips with working with Twilio in languages other than PHP, looking at all six of the remaining API libraries:

  • Ruby
  • Python
  • C#
  • Java
  • Node
  • Apex (Salesforce's proprietary language)

For each library, we'll learn how to install it, how to instantiate the REST API client, and will briefly see how the syntax of its calls compare with the PHP library we've used throughout the book. We'll also have a quick recap of the PHP library for ease of comparison.

All of the code samples are named, and can be found in the code samples downloadable from Packt's website.

Note

As a general rule, it's bad practice to include your account SID and auth token in your code for security reasons. These should be set in TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN environment variables and then used in your code.

You can find helpful examples on setting environment variables in different platforms at https://github.com/twilio...

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 €18.99/month. Cancel anytime