Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created August 7, 2012 21:53
Show Gist options
  • Save RobSpectre/3289704 to your computer and use it in GitHub Desktop.
Save RobSpectre/3289704 to your computer and use it in GitHub Desktop.
Karaoke Speakers
import flask
from twilio.util import TwilioCapability
app = flask.Flask(__name__)
ACCOUNT_SID = "ACxxxxxxxxxxxx"
AUTH_TOKEN = "yyyyyyyyyyyyyyy"
APP_SID = "APzzzzzzzzzzzzzzzz"
@app.route('/speakers')
def speakers():
capability = TwilioCapability(ACCOUNT_SID, AUTH_TOKEN)
capability.allow_client_outgoing(APP_SID)
token = capability.generate()
return flask.render_template('client.html', token=token)
@joemfb
Copy link

joemfb commented Aug 9, 2012

s/sepakers/speakers ;) BTW, awesome post and video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment