Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)
StyleCI
Latest Stable Version


License

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)