Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edbizarro/bi-connect
Connect with 3rd party sources.
https://github.com/edbizarro/bi-connect
adobeanalytics bi facebookads googleanalytics instagram tailtarget twitter-api
Last synced: 3 months ago
JSON representation
Connect with 3rd party sources.
- Host: GitHub
- URL: https://github.com/edbizarro/bi-connect
- Owner: edbizarro
- License: mit
- Created: 2018-03-23T17:26:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-06T08:09:56.000Z (almost 2 years ago)
- Last Synced: 2024-10-09T14:41:38.847Z (4 months ago)
- Topics: adobeanalytics, bi, facebookads, googleanalytics, instagram, tailtarget, twitter-api
- Language: PHP
- Homepage:
- Size: 157 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
BI - Connect
Connect with 3rd party sources to get data.
---
[![Build Status](https://semaphoreci.com/api/v1/edbizarro/bi-connect/branches/master/badge.svg)](https://semaphoreci.com/edbizarro/bi-connect)
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:
```php
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
```php
// Retrieve all analytics accounts
$accounts = $googleConnect->analytics()->accounts();
```## Installation
You can install the package via composer:
``` bash
composer require edbizarro/bi-connect
```---
[![forthebadge](http://forthebadge.com/images/badges/contains-cat-gifs.svg)](http://forthebadge.com)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fedbizarro%2Fbi-connect.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fedbizarro%2Fbi-connect?ref=badge_large)