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 flask import session | |
| from flask import make_response | |
| from twilio import twiml | |
| app = Flask(__name__) | |
| @app.route('/tracking_conversation', methods=['POST']) | |
| def tracking_conversation(): |
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 flask import request | |
| from twilio import twiml | |
| from twilio.rest import TwilioRestClient | |
| # Declare and configure application | |
| app = Flask(__name__, static_url_path='/static') | |
| app.config.from_pyfile('local_settings.py') |
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 flask import request | |
| from twilio import twiml | |
| # Declare and configure application | |
| app = Flask(__name__) | |
| # First step where we tell the user we are going to connect them to a phone number. | |
| @app.route('/first_step', methods=['POST']) |
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
| base: | |
| '*': | |
| - git | |
| - users | |
| - vim | |
| - ssh | |
| - python | |
| - apt | |
| - salt |
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
| <?php | |
| header('Content-type: text/xml'); | |
| ?> | |
| <Response> | |
| <Gather action='/2_handler.php' numDigits='1'> | |
| <Say>Press 1 for US support.</Say> | |
| <Say>Press 2 for other support.</Say> | |
| </Gather> | |
| </Response> |
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
| <Response> | |
| <Dial><Conference>Gabi's Conference Call</Conference></Dial> | |
| </Response> |
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 webapp2 | |
| import logging | |
| from twilio.util import RequestValidator | |
| from twilio import twiml | |
| AUTH_TOKEN = 'xxxxx' | |
| class MainPage(webapp2.RequestHandler): | |
| def twilio_request_validator(self): |
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
| <?php | |
| $users = array("+15556667777", "+15556667778"); | |
| require_once('auth.php'); | |
| require_once('Services/Twilio.php'); | |
| $body = $_REQUEST['Body']; | |
| $from = $_REQUEST['From']; |
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
| host.brooklynhacker.com: | |
| Data failed to compile: | |
| ---------- | |
| Pillar failed to render with the following messages: | |
| ---------- | |
| Rendering SLS 'mysql' failed, render error: | |
| found undefined alias 'Bxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
| in "<unicode string>", line 2, column 18: | |
| root_password: *Bxxxxxxxxxxxxxxxxxxxxxxx ... |
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 flask import request | |
| from twilio import twiml | |
| app = Flask(__name__) | |
| @app.route('/gather', methods=['POST']) | |
| def gather(): | |
| response = twiml.Response() |