Skip to content

Instantly share code, notes, and snippets.

@highfestiva
Created June 19, 2014 22:06
Show Gist options
  • Save highfestiva/332283fccaccf1a73e33 to your computer and use it in GitHub Desktop.
Save highfestiva/332283fccaccf1a73e33 to your computer and use it in GitHub Desktop.
Twilio sending SMS.
from twilio.rest import TwilioRestClient
msg = 'My message from Österbotten'
phones = ('+46-123-456789', '+35-2-23 45 67')
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
for phone in phones:
client = TwilioRestClient(account_sid, token)
client.messages.create(to=phone,
from_="+46zzzzzzzzz",
body=msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment