O'Reilly logo

Twilio Best Practices by Tim Rogers

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

Best practices for working with TwiML

We'll discuss some some helpful tips that can be kept in mind when you're working with TwiML to make your application better organized, more easily testable, and more maintainable.

Test locally using ngrok

When you're working with and building a Twilio application, you'll need to test it frequently by making and receiving real calls on the platform, which requires Twilio to be able to access your local web server.

This is often a challenge with the perils of dynamic IP addresses and port forwarding. Fortunately, there's a great free tool called ngrok (https://ngrok.com), which will help you get around this problem.

It'll give you a special URL (for example, http://123abc.ngrok.com), which Twilio can use to reach ...

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