devit/hasoffers-php-client

A clean & simple PHP Wrapper around the HasOffers API

dev-master 2020-11-12 17:21 UTC

This package is auto-updated.

Last update: 2024-04-13 01:04:02 UTC


README

Installation

"require": {
    "devit/hasoffers-php-client": "dev-master"
}

Example

$client = new DevIT\Hasoffers\Client('API_KEY', 'NETWORK_ID');

$offers = $client->api('Affiliate\Offer');

try {
    $response = $offers->findAll(['limit' => 5]);

    var_dump($response);
} catch (DevIT\Hasoffers\Exception $e) {
    echo($e->getMessage());
}

Supported

  • Affiliate API
  • Brand API