Created
June 19, 2014 22:06
-
-
Save highfestiva/332283fccaccf1a73e33 to your computer and use it in GitHub Desktop.
Twilio sending SMS.
This file contains 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 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