Skip to content

Instantly share code, notes, and snippets.

Created Apr 11, 2012
What would you like to do?
import urllib
URL = ''
TOKEN = ''
def send_sms(to, shout):
params = urllib.urlencode({
'action': 'create',
'token': TOKEN,
'shout': shout,
'to': to,
opener = urllib.urlopen(URL + '?' + params)
response =
# whatever u want
message(shout, {'network': "SMS", 'to': to})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment