1. Go to this page and download the library: Download worksection/pipedrive 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/ */
worksection / pipedrive example snippets
use Pipedrive\Client;
$apiToken = 'YOUR_API_TOKEN';
$client = new Client(null, null, null, $apiToken);
$response = $client->getUsers()->getCurrentUserData();
use Pipedrive\Client;
$client = new Client($clientId, $clientSecret, $redirectUri);
// Store token
Pipedrive\Configuration::$oAuthTokenUpdateCallback = function($token) {
$_SESSION['access_token'] = $token;
};
if (isset($_SESSION['access_token'])) {
Pipedrive\Configuration::$oAuthToken = $_SESSION['access_token'];
}
$authUrl = $client->auth()->buildAuthorizationUrl();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.