Created
August 16, 2013 18:39
-
-
Save apassant/6252398 to your computer and use it in GitHub Desktop.
Secure your tickets for the TC Hackathon
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 urllib | |
from twilio.rest import TwilioRestClient | |
twilio_account = "xxx" | |
twilio_token = "xxx" | |
twilio_from = "xxx" | |
twilio_to = "xxxx" | |
eventbrite = 'http://sfhackathon2013-eorg.eventbrite.com/' | |
data = urllib.urlopen(eventbrite).read().lower() | |
if 'not started'.lower() not in data: | |
TwilioRestClient(twilio_account, twilio_token).sms.messages.create( | |
to = twilio_to, | |
from_ = twilio_from, | |
body = "TC Hackathon tickets available at %s !" %(eventbrite) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment