Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.06 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.06 KB

Nutshell CRM Build Status

Author: [email protected]

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 "[email protected]", "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