Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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.

Resources

Releases

No releases published

Packages

No packages published