Created
March 2, 2014 05:33
-
-
Save sampritipanda/9302391 to your computer and use it in GitHub Desktop.
Usage for redtail gem
This file contains hidden or 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
# 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