PipeDrive Ruby Wrapper

ruby wrapper of pipe drive api

Install

Gem
gem install pipe_drive_ruby_wrapper
Gemfile
gem 'pipe_drive_ruby_wrapper'

Configure

You must call below instruction before you start to use this gem

PipeDrive.setup do |config|
  config.api_token = [Your API Token obtain from pipedrive website]
end

Usage

You should require first

require 'pipe_drive_ruby_wrapper'

use person resource as example

PipeDrive::Person.list
PipeDrive::Person.find_by_id(1)
PipeDrive::Person.search(:name, {name: 'Test'})
PipeDrive::Person.update(1, {name: 'new name'})
PipeDrive::Person.delete(1)
PipeDrive::Person.bulk_delete([1, 2])