PHP code example of budgetlens / copernica-rest-api-client

1. Go to this page and download the library: Download budgetlens/copernica-rest-api-client 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/ */

    

budgetlens / copernica-rest-api-client example snippets

 php
$accessToken = 'your-token';
$client = new \Budgetlens\CopernicaRestApi\Client($accessToken);
 php
class MyConfig implements Budgetlens\CopernicaRestApi\Contracts\Config
{
    public function getEndpoint(): string
    {
        return 'https://api.copernica.com/v3';
    }

    public function getMiddleware(): array
    {
        return $this->middleware;
    }

    public function addMiddleware($middleware)
    {
        $this->middleware[] = $middleware;
    }

    public function getTimeout(): int
    {
        return 180;
    }

    public function getUserAgent(): string
    {
        return '';
    }
}
$client->setConfig($config);