Coder Social home page Coder Social logo

pipedrive-api-php's Introduction

PipeDrive-api-php

PHP API client library for the PipeDrive CRM

Only some basic functionality required for my current project has been added. However the basic blocks are to make use of the whole API including file uploading.

Recommend you install this library through composer. https://packagist.org/packages/benhawker/pipedrive

API Docs can be found here: https://developers.pipedrive.com/v1

Example:

use Benhawker\Pipedrive\Pipedrive;  

$pipedrive = new Pipedrive('0deceea867202fcf3889cd507ef93a91789f7e3a');  

//add user  
$person['name'] = 'John Smith';  

$person = $pipedrive->persons()->add($person);  

//add note to user  
$note['content']   = 'example note';  
$note['person_id'] = $person['data']['id'];  

$pipedrive->notes()->add($note);  

//add deal to user  
deal['title']      = 'example title';  
$deal['stage_id']  = 8;  
$deal['person_id'] = $person['data']['id'];  

$pipedrive->deals()->add($deal);  

//add activity  
$activity = array(  
                    'subject' => 'Example send brochure',  
                    'type' => 'send-brochure',  
                    'person_id' => 17686,  
                    'user_id' => 190870,  
                    'deal_id' => 88,  
                    'due_date' => date('Y-m-d')  
                    );  

$pipedrive->activities()->add($activity);

pipedrive-api-php's People

Contributors

benbridts avatar benhawker1 avatar gwissem-mention avatar lstrz avatar themogly avatar tommygnr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pipedrive-api-php's Issues

Get users by email

Can be done by adding the bellow method to Persons.php

    public function getByEmail($email)
    {
         return $this->curl->get('persons/find',array('term'=>$email, 'search_by_email'=>true));
    }

Duplicate method in Deals class

Compile Error: Cannot redeclare Benhawker\Pipedrive\Library\Deals::addProduct() in
/vendor/benhawker/pipedrive/src/Benhawker/Pipedrive/Library/Deals.php line 126

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.