Skip to content

Instantly share code, notes, and snippets.

@dougiebuckets
Created October 2, 2012 17:44
Show Gist options
  • Save dougiebuckets/3821573 to your computer and use it in GitHub Desktop.
Save dougiebuckets/3821573 to your computer and use it in GitHub Desktop.
Twilio Happy Friday App
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