Skip to content

Instantly share code, notes, and snippets.

View meganspeir's full-sized avatar

Megan meganspeir

View GitHub Profile
@meganspeir
meganspeir / connect_conf.py
Created October 5, 2016 17:21
This gist calls two numbers from a given Twilio number and then connects the callers to a conference.
from flask import Flask
from twilio.rest import TwilioRestClient
from twilio import twiml
app = Flask(__name__)
client = TwilioRestClient(SID, token)
@meganspeir
meganspeir / HumanDetection.py
Last active February 11, 2016 23:50
Human Detection with <Gather>
'''
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!
'''
@meganspeir
meganspeir / app.py
Created October 29, 2015 18:29
The Martian
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