Rainmaker Ruby Gem
A Ruby wrapper for the Rainmaker API
Installation
gem install rainmaker
Documentation
http://rdoc.info/gems/rainmaker
Usage Examples
require "rubygems"
require "rainmaker"
# This could go in an initializer
Rainmaker.configure do |config|
config.api_key = "rainmaker_api_key_goes_here"
config.timeout_seconds = "30" # value will be used for all requests unless overridden
config.twitter_token = "twitter_token_goes_here" # contact support@rainmaker.cc for details
config.linkedin_token = "linked_in_token_goes_here" # contact support@rainmaker.cc for details
end
# Get information about an email address
person = Rainmaker.person("brawest@gmail.com")
# Get person's family_name
puts person.contact_info.family_name
# Override timeout_seconds for single call
person = Rainmaker.person("brawest@gmail.com", { :timeout_seconds => "0" })
Copyright
Copyright (c) 2011 Brandon West
See LICENSE for details.