clsystems/cd-api-client

Click Dealer api library

0.1.3 2020-10-18 14:47 UTC

This package is auto-updated.

Last update: 2024-04-29 04:58:00 UTC


README

A PHP wrapper around the Click Dealer API

Install

Install http://getcomposer.org/ and run the following command:

php composer.phar require clsystems/cd-api-client dev-master

Examples

Request campaigns

  • By apiKey / AffiliateId
$api = new CLSystems\Clickdealer\Api($apiKey, $affiliateId);
$campaigns = $api->getCampaigns(['campaign_id' => 1234]);

foreach ($campaigns as $campaign) {
    // do smth with campaign
}