nokimaro / apivore-getcake
A clean & simple PHP Wrapper around the GetCake API.
dev-master / 1.0.x-dev
2016-10-18 11:10 UTC
Requires
- php: ^5.6 || ^7.0
- nokimaro/apivore-core: *
Requires (Dev)
- graham-campbell/testbench: ^3.1
- mockery/mockery: ^0.9.4
- phpunit/phpunit: ^5.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2025-04-16 21:58:07 UTC
README
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.