PipedrivePUT

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'PipedrivePUT'

And then execute:

$ bundle

Or install it yourself as:

$ gem install PipedrivePUT

Usage

PipedrivePUT.key(< API Token Here >)

Organizations

Get all organizations from your account at Pipedrive

  PipedrivePUT::Organizations.getAllOrgs

Get Organization by ID

  PipedrivePUT::Organizations.getOrganization(< id >)

Add an organization

  PipedrivePUT::Organizations.addOrganization(< Name of new Organization >)

Find Organization by term

  PipedrivePUT::Organizations.findOrganizationByName(< Term >)

Deals

Get Specific Deal with ID

  PipedrivePUT::Deal.getDeal(<id>)

Get All Deals

PipedrivePUT::Deal.getAllDeals

Search entire Pipedrive (Deals, Organizations, Product, File, Person)

  PipedrivePUT::Search.search(< Term >)

Search Specific Item type in Pipedrive (Deals, Organizations, Product, File, Person)

  PipedrivePUT::Search.search(< Term >, < item_type>)

Example:

  PipedrivePUT::Search.search("UPMC", "organization")

Users

Get All users for your company

  PipedrivePUT::Users.getAllUsers

Data is returned in JSON format.

This can be easily customized. I needed something quickly and easily for my own personal project.

This is my first attempt at a ruby gem so I appoligize if things are unorthodox.

To do List

  1. Add support for additional arguments to create an organization

  2. Get All Deals

  3. Add a deal

  4. Many other Pipedrive API Calls

Contributing

  1. Fork it ( https://github.com/jakepens71/RailsPipedriveGem/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request