Ruby wrapper for Nutshell CRM's API
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec Use Ruby 1.8.7 hash. Dec 28, 2011
.gitignore
.rbenv-version
.rspec
.travis.yml Test against Ruby v1.9.3 Dec 28, 2011
CHANGELOG.md
Gemfile Initial commit. Dec 13, 2011
LICENSE Create LICENSE Jul 16, 2015
README.md
Rakefile
nutshell-crm.gemspec Add rake as dev dependency. Dec 28, 2011

README.md

Nutshell CRM Build Status

Author: mshafrir@gmail.com

Description

Nutshell Crm is a Ruby wrapper for the Nutshell Crm API.

Nutshell API Reference

Reference

  • {NutshellCrm::Client}

Example Usage

require "nutshell-crm"

# Instantiate the Nutshell client.
nutshell = NutshellCrm::Client.new "user@example.com", "MY_API_KEY"

# Get the first open lead with stub data (default).
nutshell.find_leads({status: 0}).first
#=> {"stub"=>true, "id"=>1001, "entityType"=>"Leads", "name"=>"Lead\u20131001", "status"=>0, "primaryAccountName"=>nil}

# Enable non-stub responses.
nutshell.stub_responses = false

# Get the first open lead with full data.
nutshell.find_leads({status: 0}).first
#=> {"id"=>1001, "entityType"=>"Leads", "name"=>"Lead\u20131001", "status"=>0, "primaryAccountName"=>nil, "creator"=>{}}

Install

gem install nutshell-crm