devit / hasoffers-php-client
A clean & simple PHP Wrapper around the HasOffers API
Installs: 5 482
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 2
Open Issues: 1
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~6.0
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