承接 fedemotta/yii2-appnexusapiclient 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fedemotta/yii2-appnexusapiclient

最新稳定版本:v1.2

Composer 安装命令:

composer require fedemotta/yii2-appnexusapiclient

包简介

AppNexus API client for yii2

README 文档

README

This extension provides the AppNexus API client integration for the Yii2 framework.

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fedemotta/yii2-appnexusapiclient "*"

or add

"fedemotta/yii2-appnexusapiclient": "*"

to the require section of your composer.json file.

Usage

To use this extension, simply add the following code in your application configuration:

return [
    //....
    'components' => [
        'appnexusapiclient' => [
            'class' => 'fedemotta/appnexusapiclient/AppNexusApiClient',
            'username' => 'yourusername',
            'password' => 'yourpassword',
            'host' => 'http://api-console.client-testing.adnxs.net/', //or http:://api.appnexus.com
            'storage_type' => 'Apc', //available token storage are Array, Apc and Memcached
            'storage_type_settings' => ['prefix_',0], //specifies the storage type settings
        ],
    ],
];

Getting users from AppNexus:

$users = Yii::$app->appnexusapiclient->get('/user');

Modifying a publisher name in AppNexus:

Yii::$app->appnexusapiclient->put('/publisher?id=1',["publisher"=>["name"=>"The new name"]]);

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-13