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-10-29 06:12:08 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
}