🔔
notes for myself when I have to deploy this again
export IPHONE=iphone number
export TWPHONE=fake twiio number
export SID=twilio sid
export TOKEN=twilio token
export NAME=name of heroku app
export PORT=whatever
set up a twilio number, and set its voice request URL to <NAME>.herokuapp.com/call
. also make sure it's a GET request! this just returns xml ("twiml")
i skipped all that buildpack business here, so you need to go build ./...
before pushing to heroku.
borrowed heavily from https://www.twilio.com/blog/2014/10/making-and-receiving-phone-calls-with-golang.html