Skip to content

Instantly share code, notes, and snippets.

@sampritipanda
Created March 2, 2014 05:33
Show Gist options
  • Save sampritipanda/9302391 to your computer and use it in GitHub Desktop.
Save sampritipanda/9302391 to your computer and use it in GitHub Desktop.
Usage for redtail gem
# For testing this in irb. Install the gem using 'gem install redtail'
# Then paste this in irb or in a ruby file and run it.
require 'redtail'
Redtail.configure do |config|
config.api_key = "6C135EDF-C37C-4039-AEF3-5DFC079F9E6A"
config.secret_key = "D81FC882442D4F0988E152B96A646623"
config.api_uri = "https://api2.redtailtechnology.com/crm/v1/rest/"
end
Redtail.authenticate_via_basic_authentication("Statementone", "sonedemo") do |redtail_user|
puts redtail_user.contacts.search_by_name('Investor')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment