PHP code example of linkprofit-cpa / tracker-client

1. Go to this page and download the library: Download linkprofit-cpa/tracker-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/ */

    

linkprofit-cpa / tracker-client example snippets


$connection = new \linkprofit\Tracker\Connection();

/* указываем параметры соединения */
$connection->userName = '';
$connection->userPassword = '';
$connection->apiUrl = '';
$connection->accessLevel = \linkprofit\Tracker\AccessLevel::USER;

/* создаем клиент и подключаемся к трекеру */
$client = new \linkprofit\Tracker\Client($connection);
$client->connect();

$response = $client->exec($route);
$response->handle();

$client->setCache($client->getDefaultFileCache());

$client->setResponseHandler(new ArrayResponseHandler());