brightlocal/api
最新稳定版本:v0.4.3
Composer 安装命令:
composer require brightlocal/api
包简介
BrightLocal API wrapper and examples
README 文档
README
A basic PHP wrapper to make using the BrightLocal API a little easier. It takes care of authentication so you just need to specify which method you want to call and pass parameters.
Installation
It's easiest to install and use the library via Composer.
Step 1: Add to the requires section of your composer.json file.
"require": { "brightlocal/api": "0.*" }
Step 2: Install
composer install
Examples
<?php require 'BrightLocal/Api.php'; $api = new BrightLocal\Api('YOUR_API_KEY', 'YOUR_API_SECRET'); // get a list of clients print_r($api->call('/v2/clients/get-all')); // get a client print_r($api->call('/v2/clients/get', array( 'client-id' => 1059 ))); // get LSRC report list print_r($api->call('/v2/lsrc/get-all')); // get LSRC report print_r($api->call('/v2/lsrc/get', array( 'campaign-id' => 50 ))); // get CT report list print_r($api->call('/v2/ct/get-all')); // get a CT report print_r($api->call('/v2/ct/get', array( 'report-id' => 259 )));
Example Scripts
Example scripts can be found in /Examples. We'll be adding to these scripts over time.
统计信息
- 总下载量: 274.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-06-12