Git Product home page Git Product logo

twiml-example's Introduction

twiml-example

An example TwiML endpoint for use when making Voice calls with Twilio.

Live App

http://twiml-example.meteor.com/api/v1/twiml/voice/113

How to use

Log in to your Twilio account and go to this URL: https://www.twilio.com/user/account/developer-tools/api-explorer/call-create

Enter in the phone number you want to call and use the twiml-example URL from your live app as the URL field (the endpoint Twilio will ping to get the text to say).

Hosting on meteor.com is a great way to test your twiml endpoint so you can avoid firewall issues. Just be sure not to deploy any sensitive account info such as your Twilio credentials!

If you want, you can use the Live version of this example app for testing. Note that it may take a bit for the service to wake up if no-one has used it for a while so this may delay the initial reading.

Server Logs

To view server logs when deployed on meteor.com's free hosting, enter the following on your command line:

$ meteor logs twiml-example.meteor.com > logs.txt

Production Use

There are two changes that should be made before using this code in a live system.

  • POST-only

The TwiML endpoint in this example responds to all methods but in production, you probably want to only accept POST requests.

  • validateRequest

You should also include use of validateRequest when using this code in production. It is left out of the example because it requires a Twilio Auth Token.

twiml-example's People

Contributors

alanning avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

gitgoingbrains

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.