Created
January 5, 2020 04:23
-
-
Save aprilspeight/d59acb83e0382ee08b4a60d7b3cda528 to your computer and use it in GitHub Desktop.
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
# Twilio account credentials | |
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
auth_token = '9fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
client = Client(account_sid, auth_token) | |
# text message setup | |
message = client.messages \ | |
.create( | |
body=f'Today\'s picture is of: {title}! \n\n Btw...T{delta.days} days until we go to NASA! {rocket}', | |
from_='+1xxxxxxxxxx', | |
media_url=[f'{picture}'], | |
to='+1xxxxxxxxxx' | |
) | |
print(message.sid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment