Skip to content

Instantly share code, notes, and snippets.

@dougiebuckets
Created November 1, 2012 17:37
Show Gist options
  • Save dougiebuckets/3995259 to your computer and use it in GitHub Desktop.
Save dougiebuckets/3995259 to your computer and use it in GitHub Desktop.
SMS Reminders App
class RemindersController < ApplicationController
def reminder
if dateToRemind == Time.now
# Send SMS via TelAPI's REST API
Telapi::Message.create(number_to_send_to,
number_to_send_from,
'This is a reminder of your upcoming appointment tomorrow.' )
else
puts "It's not time to remind them yet."
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment