Skip to content

Instantly share code, notes, and snippets.

View RonBarabash's full-sized avatar

Ron RonBarabash

View GitHub Profile
@RonBarabash
RonBarabash / salesforce.rb
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
integrations_conf = YAML.load_file("#{Rails.root}/config/integrations.yml")['production’]
Restforce.configure do |config|
config.username = integrations_conf['SALESFORCE']['USERNAME']
config.password = integrations_conf['SALESFORCE']['PASSWORD']
config.security_token = integrations_conf['SALESFORCE']['TOKEN']
config.client_id = integrations_conf['SALESFORCE']['CLIENT_ID']
config.client_secret = integrations_conf['SALESFORCE']['CLIENT_SECRET']
config.host = integrations_conf['SALESFORCE']['HOST'] if integrations_conf['SALESFORCE']['HOST'].present?a
end
client = Restforce.new