Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 440 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 440 Bytes

HasOffers PHP Client

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