This is failing because my Twilio Trial is up and I don't feel like paying to renew it.
I really love the XKCD Comics and wanted to play around with Twilio so I decided to make a bot to scrape some data with it.
Because I'm too lazy to actually go and check the XKCD website, I created a bot using Python and the Twilio API to send a text message that contains:
- Latest XKCD Comic Image
- The Comic Number
- The Title
- The Alt Text
If you want to do something similar, this works with a Twilio Trial Account. Fork this repo and make a Twilio Account. After you make the account go ahead and grab the following
- A phone number with MMS support [Format of
+12345678901
]. -TWILIO_PHONE_NUMBER
- Twilio Account SID -
TWILIO_ACCOUNT_SID
- Twilio Auth Token -
TWILIO_AUTH_TOKEN
- A Verified Number to send to. [Format of
+12345678901
] -TO_PHONE_NUMBER
Take those things and make them secrets in GitHub Settings and name them the name I have associated above. As long as your phone number is verified, the action should run and send a text.
If it's a trial account, it will contain a line that says Sent from your Twilio Trial Account
which is a little annoying, but can be avoided if you decide to upgrade your account.
All comic and image credit goes to XKCD