Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created March 31, 2012 00:26
Show Gist options
  • Save RobSpectre/2258155 to your computer and use it in GitHub Desktop.
Save RobSpectre/2258155 to your computer and use it in GitHub Desktop.
Handling a recording using Twilio Hackpack for Heroku and Flask
@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