nokimaro/apivore-getcake

A clean & simple PHP Wrapper around the GetCake API.

dev-master / 1.0.x-dev 2016-10-18 11:10 UTC

This package is not auto-updated.

Last update: 2024-05-15 17:42:12 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Install

Via Composer

$ composer require apivore/getcake

Usage

use Apivore\Core\Config;

$client = new Apivore\GetCake\Client();
$client->setConfig(new Config([
    'domain' => 'http://f5mlogin.com/',
    'affiliateId' => 'AFFILIATE_ID',
    'apiKey' => 'API_KEY',
]));

try {
    $response = $client->api('Offers')->offerFeed([
        'campaign_name' => '',
        'media_type_category_id' => 0,
        'vertical_category_id' => 0,
        'vertical_id' => 0,
        'offer_status_id' => 0,
        'tag_id' => 0,
        'start_at_row' => 1,
        'row_limit' => 25,
    ]);

    dd($response);
} catch (Exception $e) {
    dd($e);
}

Testing

$ composer test

Security

If you discover any security related issues, please email hello@draperstudio.tech instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.