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-11-13 02:27:46 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