PHP code example of jolicode / harvest-php-api
1. Go to this page and download the library: Download jolicode/harvest-php-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/ */
jolicode / harvest-php-api example snippets
// $harvestClient contains all the methods to interact with the API
$harvestClient = JoliCode\Harvest\ClientFactory::create(
$accessToken,
$harvestAccountId
);
$clients = $harvestClient->listClients([
'is_active' => true,
])->getClients();
dump($clients);
bash
composer