1. Go to this page and download the library: Download whitecube/cerepo-api-php 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/ */
whitecube / cerepo-api-php example snippets
use Whitecube\Cerepo\TokenClient;
$auth = new TokenClient(
$tokenUrl, // e.g. "https://token.cerepo.io/74ab26ad-6287-4bdc-8a6e-a770ae261d2c/oauth2/v2.0/token"
$clientId, // your client id
$clientSecret // your client secret
);
use Whitecube\Cerepo\Client;
$client = new Client($auth, 'https://acc.cerepo.io/api/');