PHP code example of morningtrain / pipedrive-api

1. Go to this page and download the library: Download morningtrain/pipedrive-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

morningtrain / pipedrive-api example snippets

 php
 MorningTrain\PipedriveApi\PipedriveApi;

define('PIPEDRIVE_API_KEY', 'YOUR-PIPEDRIVE-API-KEY');

$pipedrive_client = new PipedriveApi(PIPEDRIVE_API_KEY);

$result = $pipedrive_client->updateActivityType(1, [
	'name' => 'type_1',
	'icon_key' => 'task',
	'color' => 'red',
	'order_nr' => 1
    ]);