Gracefully extricate yourself from any situation
Set up Twilio
What you'll need from Twilio: an account, phone number, SID, and auth token. Sign up here: http://twilio.com
NOTE: Unless you have a paid account, you'll have to manually verify user phone numbers, and a test message will play before every call.
ALSO: There is no way to test Twilio functionality locally. You have to have some way for Twilio to reach the app over teh internets.
Go to your dashboard -> your Twilio number and enter in
http://your-app-url.com/twilio/process_sms under "Messaging". Choose "HTTP GET" from the dropdown next to it.
Set up your stuff
Put this in your
# .env TWILIO_SID=yourkey TWILIO_AUTH_TOKEN=yourtoken
@app_number to your Twilio number at the end of
# app/controllers/twilio_controller.rb def set_twilio_number @app_number = "+16176069516" end
You can either sign up with one of the phone numbers you verified on Twilio, or you can add it manually to
ANOTHER NOTE: You must format your phone number like this: +1XXXXXXX