Created
August 7, 2012 21:53
-
-
Save RobSpectre/3289704 to your computer and use it in GitHub Desktop.
Karaoke Speakers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
s/sepakers/speakers ;) BTW, awesome post and video.