Skip to content

Instantly share code, notes, and snippets.

View undees's full-sized avatar
🌈

Erin Paget, née Dees undees

🌈
View GitHub Profile
@undees
undees / salesforce_oauth_first.rb
Created February 10, 2010 09:23
Connect Ruby to Salesforce via OAuth
require 'oauth'
consumer_key = '...' # from SalesForce
consumer_secret = '...' # from SalesForce
oauth_options = {
:site => 'https://login.salesforce.com',
:scheme => :body,
:request_token_path => '/_nc_external/system/security/oauth/RequestTokenHandler',
:authorize_path => '/setup/secur/RemoteAccessAuthorizationPage.apexp',