定制 50onred/publisher-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

50onred/publisher-api

最新稳定版本:2.1

Composer 安装命令:

composer require 50onred/publisher-api

包简介

API for Publishers to the 50onRed Publisher Dashboard

README 文档

README

You can get an API key from your publisher dashboard.

Requirements

PHP 5.3.3 and later.

Composer

You can install the bindings via Composer. Add this to your composer.json:

{
  "require": {
    "50onred/publisher-api": "2.*"
  }
}

Then install via:

composer install

Or, do it in one shot with:

composer require "50onred/publisher-api:2.*"

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the API.php file in the src directory.

require_once('/path/to/50onred/publisher-api-php/src/Fifty/PublisherAPI/API.php');

Getting Started

Simple usage looks like:

\Fifty\PublisherAPI\API::setApiKey('your_api_key');
$parameters = array(
    'filters' => array(
        'zone' => array('example_zone_name'), //Optional
        'geo' => array('US', 'CA') //Optional
        'monetization' => array('Banners', 'CA') //Optional
    ),
    'group_by' => array('monetization', 'date'), //Optional
    'start_date' => '2015-01-01', //Required
    'end_date' => '2015-01-02', //Required
    'pubtype' => 'js' //Required
);

$report = \Fifty\PublisherAPI\Report::custom($parameters); // returns a `SplFileObject`

while (!$report->eof()) {
    var_dump($report->fgetcsv());
}


Documentation

Please see https://publisher.50onred.com/api-docs/v2/index.html for up-to-date documentation.

统计信息

  • 总下载量: 51
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-03-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固