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
from flask import Flask | |
from twilio.rest import TwilioRestClient | |
from twilio import twiml | |
app = Flask(__name__) | |
client = TwilioRestClient(SID, token) |
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
''' | |
README: | |
1. Create a free Twilio account and snag a phone number: https://www.twilio.com/try-twilio | |
2. Create a webhook to configure Twilio voice URL: https://www.twilio.com/blog/2015/09/6-awesome-reasons-to-use-ngrok-when-testing-webhooks.html | |
3. Install Flask: http://flask.pocoo.org/docs/0.10/installation/ | |
4. Install Twilio-Python helper library: https://www.twilio.com/docs/python/install | |
5. Copy & paste this gist. Be sure to edit YOUR information. Have fun! | |
''' |
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 requests | |
from flask import Flask | |
from flask import request, send_from_directory | |
from twilio import twiml | |
from martianify import martianify | |
UPLOAD_FOLDER = '/path/to/your/project/' | |
# App declaration and configuration |