nokimaro/apivore-getcake

围绕GetCake API的简洁且简单的PHP包装器。

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

This package is not auto-updated.

Last update: 2024-09-18 19:07:13 UTC


README

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

安装

通过Composer

$ composer require apivore/getcake

使用方法

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);
}

测试

$ composer test

安全性

如果您发现任何与安全性相关的问题,请通过电子邮件hello@draperstudio.tech联系,而不是使用问题跟踪器。

致谢

许可证

MIT许可证(MIT)。请参阅许可证文件获取更多信息。