PHP code example of lsv / timeharvest-sdk
1. Go to this page and download the library: Download lsv/timeharvest-sdk 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/ */
lsv / timeharvest-sdk example snippets
$factory = new \Lsv\TimeharvestSdk\RequestFactory(
new \Lsv\TimeharvestSdk\TimeharvestClient($accessToken,$accountId)
);
$response = $factory->clients()->listClients($isActive, $updatedSince, $page, $perPage);
foreach ($response['data'] as $client) {
// $client instanceof \Lsv\TimeharvestSdk\Response\Client\ClientResponse
}