Created
March 31, 2012 00:26
-
-
Save RobSpectre/2258155 to your computer and use it in GitHub Desktop.
Handling a recording using Twilio Hackpack for Heroku and Flask
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
@app.route('/voice', methods=['POST']) | |
def voice(): | |
response = twiml.Response() | |
response.record(action="/recordingHandler") | |
return str(response) | |
@app.route('/recordingHandler', methods=['POST']) | |
def recordingHandler(): | |
recording_url = request.form['RecordingUrl'] | |
# Do something with it below | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment