edbizarro/bi-connect
Composer 安装命令:
composer require edbizarro/bi-connect
包简介
Connect with 3rd party sources.
关键字:
README 文档
README
BI - Connect
Connect with 3rd party sources to get data.Supported sources:
- Google Analytics
- Adobe Analytics (WIP)
- Facebook Ads (WIP)
- Instagram Ads (WIP)
- Twitter (WIP)
- TailTarget (WIP)
Here are a few examples on how you can use the package:
use Bi\Connect\Google\GoogleConnect; use Bi\Connect\Google\Auth\CredentialsFileAuth; $googleConnect = new GoogleConnect( new CredentialsFileAuth('path/to/ga/credentials.json) // https://developers.google.com/analytics/devguides/reporting/core/v4/authorization#common_oauth_20_flows ); $googleConnect->addScope('analytics'); $googleConnect->setRedirectUrl('registered callback url'); // Se link above $googleConnect->getLoginUrl(); // Get google login auth url // OAuth2 flow
After the OAuth2 flow you can access GA Analytics API
// Retrieve all analytics accounts $accounts = $googleConnect->analytics()->accounts();
Installation
You can install the package via composer:
composer require edbizarro/bi-connect
统计信息
- 总下载量: 5.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-09