Date Escape lets you set SMS triggers that interact with the Twilio API which will call your phone with a custom text-to-speech message.
Ruby CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
userstories.txt

README.md

Date Escape

Gracefully extricate yourself from any situation

http://date-escape.herokuapp.com

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 file:

# .env
TWILIO_SID=yourkey
TWILIO_AUTH_TOKEN=yourtoken

Set @app_number to your Twilio number at the end of twilio_controller.rb:

# app/controllers/twilio_controller.rb
  def set_twilio_number
    @app_number = "+16176069516"
  end

Then run: rake db:migrate rake db:seed

You can either sign up with one of the phone numbers you verified on Twilio, or you can add it manually to db/seeds.rb.

ANOTHER NOTE: You must format your phone number like this: +1XXXXXXX