PHP code example of websetstudio / kooltracker-client-php
1. Go to this page and download the library: Download websetstudio/kooltracker-client-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/ */
websetstudio / kooltracker-client-php example snippets
composer
// Include the autoload.php
erClient\Client;
use WebsetStudio\KoolTrackerClient\Model\User;
use WebsetStudio\KoolTrackerClient\Utils\Generator;
$user = new User();
$user->setOptInDate(new DateTime($optInDate));
$user->setOptInUrl($optInUrl);
$user->setUid($userUid);
$client = new Client('https://agency.tracking.domain/coreg_(abc)/', new Generator());
/** @var \WebsetStudio\KoolTrackerClient\Model\Response $answer */
$answer = $client->send($user);
// Process the answer as you wish
// bool $answer->isSuccessful();
// string $answer->getMessage();