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 [email protected] for details
  config.linkedin_token = "linked_in_token_goes_here"  # contact [email protected] for details
end

# Get information about an email address
person = Rainmaker.person("[email protected]")

# Get person's family_name
puts person.contact_info.family_name

# Override timeout_seconds for single call
person = Rainmaker.person("[email protected]", { :timeout_seconds => "0" })

Copyright (c) 2011 Brandon West

See LICENSE for details.