Created
October 2, 2012 17:44
-
-
Save dougiebuckets/3821573 to your computer and use it in GitHub Desktop.
Twilio Happy Friday App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CallsController < ApplicationController | |
def index | |
require 'rubygems' | |
require 'twilio-ruby' | |
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy' | |
@client = Twilio::REST::Client.new account_sid, auth_token | |
@call = @client.account.calls.create( | |
:to => '+15555555555', # The client's number to call | |
:from => '+13153814053', # The Twilio number we are calling from | |
:url => 'http://remind-my-clients.herokuapp.com/remind-my-clients.xml', | |
:method => 'GET' | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment