Skip to content
Felipe Borges Ferreira edited this page Jul 24, 2016 · 10 revisions

Basic

Add this line to your application's Gemfile:

gem 'pipedrive_ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pipedrive_ruby --pre

Now you can call

#Get a PipedriveClient and you can call implemented resources
client = PipedriveRuby::PipedriveClient.new("YOUR_API_TOKEN")

#Get a Deals resource an then you can call the implemented methods like
client.deals 

# it will return a OpenStruct 
response = client.deals.all 

# you can do 
response.status_code #to see http code
response.data # to get the resource (deals, products etc...)

or you can include in your class

class MyClass
  include PipedriveRuby
  
  puts PipedriveClient.new("YOUR_API_TOKEN").deals.all

end
Clone this wiki locally