Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sample twilio ping-pong application
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
routes
views
.gitignore
README.md
app.js
config.js.sample
package.json

README.md

Sample twilio ping-pong application built on top of node-twilio module.

The flow is simple, when you click "Ping" button, it will send "ping" message to the server and then server will call you back via twilio client to tell you "pong, pong, pong".

NOTE

To make it possible to use sandbox resource, capability tokens and to run via localtunnel I incorporated the following pull requests into my fork of node-twilio:

Thank you guys!

Requirements

  • Node.js
  • Twilio account with at least one verified number
  • Internet browser with a flash plugin installed
  • Computer speaker or headsets

Installation

git clone git://github.com/yevgenko/twilioPingPong.git
cd twilioPingPong && npm install
cp config.js.sample config.js
vim config.js // update to your twilio creds

Usage

localtunnel -k ~/.ssh/id_rsa.pub 3000
HOSTNAME="XXXX.localtunnel.com" node app.js // replace XXXX with value from localtunnel output

Open your browser, go to XXXX.localtunnel.com, wear your headsets and click "Ping" button ;)

Enjoy!

Something went wrong with that request. Please try again.