Or, how I keep my mom updated on my travel schedule with Python, Twilio and Google Calendar. For a full tutorial on how to run this check out the blog post:
This project has some modifications not mentioned in the blog post to support deploying to Heroku. Make sure you have a Heroku account and create a new project from the CLI
heroku create
Set the following as Heroku environment variables with heroku config:set VARIABLE_NAME:VARIABLE_VALUE
. You can also find the expected environment variables in app_config.py.
CALENDAR_ID
WTHIK_PROJECT_ID
WTHIK_PRIVATE_KEY_ID
WTHIK_PRIVATE_KEY
WTHIK_CLIENT_EMAIL
WTHIK_CLIENT_ID
WTHIK_CLIENT_CERT_URL
One gotcha: make sure your private key is formatted correctly.
Deploy to Heroku:
git push heroku master
Once deployed, update your Twilio webhook URL to point at your Heroku URL instead of an ngrok
URL. Then test it out by sending an SMS!