Info Globo Integration (PHP)
, (*1)
Description
Check if customer is subscriber, subscription profile and segment., (*2)
Requirements
Guzzle, PHP HTTP client, (*3)
Installing
Run the Composer command to install the latest stable version:, (*4)
php composer.phar -vvv require inicial/infoglobo-php
After installing, you need to require Composer's autoloader:, (*5)
require 'vendor/autoload.php';
You can then later update using composer:, (*6)
php composer.phar -vvv update
Example
require_once(dirname(__FILE__) . '/vendor/autoload.php');
$infoGlobo = new InfoGlobo\InfoGlobo();
$infoGlobo->setApiBaseUrl ('https://api-ig.infoglobo.com.br/');
$infoGlobo->setApiAuthUser('username');
$infoGlobo->setApiAuthPass('password');
$infoGlobo->setApiCustomer('customer');
$customer = $infoGlobo->getCustomerByCpf('96356986523');
Note
You can find more info about usage on class source code., (*7)
Report any bug or suggest changes using git issues., (*8)