Skip to content

Instantly share code, notes, and snippets.

@apassant
Created August 16, 2013 18:39
Show Gist options
  • Save apassant/6252398 to your computer and use it in GitHub Desktop.
Save apassant/6252398 to your computer and use it in GitHub Desktop.
Secure your tickets for the TC Hackathon
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