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
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
Add support for additional arguments to create an organization
Get All Deals
Add a deal
Many other Pipedrive API Calls
Contributing
- Fork it ( https://github.com/jakepens71/RailsPipedriveGem/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request