foo
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Learn how to make your own Twilio voice app at www.twilio.com/docs/voice --> | |
<Response> | |
<!-- First, say a short message for anyone who's testing the number --> | |
<Say voice="alice">Thanks for testing Wrap it Up, a Twil-e-o project by Andrew Baker. I'm now going to press 1 to join the Zoom call.</Say> | |
<!-- Play a sound representing a user pressing 1 on their dialpad, which Zoom requires before adding us to the meeting --> | |
<Play digits="1"/> | |
<!-- Wait a second for Zoom to add us to the meeting before starting to play the music --> | |
<Pause length="1"/> |
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
// Remember to add "/voicemail-record" as the path for your function in the field above! | |
exports.handler = function(context, event, callback) { | |
// Initialize our TwiML response. What's TwiML? Learn more here: | |
// https://www.twilio.com/docs/glossary/what-is-twilio-markup-language-twiml | |
let twiml = new Twilio.twiml.VoiceResponse(); | |
// <Say> a message to the caller first (feel free to customize it!) | |
twiml.say({ | |
voice: "alice" |
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
""" | |
See also: | |
https://support.twilio.com/hc/en-us/articles/223134027-Twilio-support-for-STOP-BLOCK-and-CANCEL-SMS-STOP-filtering- | |
""" | |
# Download the Python helper library from twilio.com/docs/python/install | |
from twilio.rest import TwilioRestClient | |
# Your Account Sid and Auth Token from twilio.com/user/account | |
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" |
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 instagram.client import InstagramAPI | |
api = InstagramAPI( | |
client_id='XXXXXXXXXXXXXXXXXXXXXXXXX', | |
client_secret='YYYYYYYYYYYYYYYYYYYYYYYYYY') | |
popular_media = api.media_popular(count=10) | |
for media in popular_media: | |
print media.images['standard_resolution'].url |
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 import twiml | |
app = Flask(__name__) | |
@app.route('/voice', methods=['POST']) | |
def incoming_call(): | |
"""Twilio Voice URL - receives incoming calls from Twilio""" | |
# Create a new TwiML response | |
resp = twiml.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 csv | |
import random | |
import sys | |
import time | |
class Attendee(object): | |
"""A small class to represent an attendee""" | |
def __init__(self, name, profile_url): | |
self.name = name |
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
<!DOCTYPE html><html><head><meta charset="utf-8"><style>body { | |
width: 45em; | |
border: 1px solid #ddd; | |
outline: 1300px solid #fff; | |
margin: 16px auto; | |
} | |
body .markdown-body | |
{ | |
padding: 30px; |