PHP code example of jdecool / clockify-api
1. Go to this page and download the library: Download jdecool/clockify-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/ */
jdecool / clockify-api example snippets
der = new JDecool\Clockify\ClientBuilder();
$client = $builder->createClientV1('your-clockify-api-key');
$workspaces = $client->get('workspaces');
$builder = new JDecool\Clockify\ClientBuilder();
$client = $builder->createClientV1('your-clockify-api-key');
$apiFactory = new JDecool\Clockify\ApiFactory($client);
$workspaceApi = $apiFactory->workspaceApi();
$workspaces = $workspaceApi->workspaces(); // return an array of JDecool\Clockify\Model\WorkspaceDto