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'); | |
// Set your account credentials and numbers you want to call and text. | |
$ACCOUNT_SID = "ACxxxxxxxxx"; | |
$AUTH_TOKEN = "yyyyyyyyyyyy"; | |
$TWILIO_NUMBER = "+12223334444"; | |
$NUMBER_TO_CALL = "+15556667777"; | |
$NUMBER_TO_TEXT = "+15554443333"; |
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'); | |
// Set your account credentials and numbers you want to call and text. | |
$ACCOUNT_SID = "ACxxxxxxxxx"; | |
$AUTH_TOKEN = "yyyyyyyyyyyy"; | |
$TWILIO_NUMBER = "+12223334444"; | |
$NUMBER_TO_TEXT = "+15554443333"; | |
// Include Twilio PHP helper library |
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 os | |
import signal | |
from flask import Flask | |
from flask import request | |
import requests | |
import simplejson as json | |
from twilio import twiml |
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'); | |
// Define doctor offices to notify of inbound lead | |
$offices = array('+15556667777', '+15554443333'); | |
// Set your account credentials and numbers you want to call and text. | |
$ACCOUNT_SID = "ACxxxxxxxxx"; | |
$AUTH_TOKEN = "yyyyyyyyyyyy"; | |
$TWILIO_NUMBER = "+12223334444"; |
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 | |
// Define Twilio number you wish to use for call tracking | |
$ORGANIC = '+18475625924'; | |
$PAID = '+18475625918'; | |
// Set your account credentials and numbers you want to call and text. | |
$ACCOUNT_SID = "ACxxxxxxxxx"; | |
$AUTH_TOKEN = "yyyyyyyyyyyy"; | |
$TWILIO_NUMBER = "+12223334444"; |
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
# Pull your account settings from a local file | |
from local_settings import * | |
# Get the TwilioRestClient class to access Twilio via REST | |
from twilio.rest import TwilioRestClient | |
# Authenticate to Twilio using the local_settings you imported | |
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN) | |
# List all the SMS messages you've received to a number |
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 flask | |
from twilio import twiml | |
app = flask.Flask(__name__) | |
@app.route('/mic', methods=['POST']) | |
def karaoke(): | |
response = twiml.Response() | |
with response.dial() as dial: | |
dial.conference("Karaoke Party Room") |
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 flask | |
from twilio.util import TwilioCapability | |
app = flask.Flask(__name__) | |
ACCOUNT_SID = "ACxxxxxxxxxxxx" | |
AUTH_TOKEN = "yyyyyyyyyyyyyyy" | |
APP_SID = "APzzzzzzzzzzzzzzzz" | |
@app.route('/speakers') |
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 flask | |
from twilio import twiml | |
app = flask.Flask(__name__) | |
@app.route('/tunes', methods=['POST']) | |
def tunes(): | |
response = twiml.Response() | |
response.play('http://example.com/tastytunes.mp3') | |
return str(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
from twilio.rest import TwilioRestClient | |
ACCOUNT_SID = "ACxxxxxxxxxxxx" | |
AUTH_TOKEN = "yyyyyyyyyyyyyyy" | |
APP_SID = "APzzzzzzzzzzzzzzzz" | |
CALLER_ID = "+15556667777" | |
KARAOKE_NUMBER = "+15558675309" | |
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN) |