Skip to content

inicialsolucoes/infoglobo-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info Globo Integration (PHP)

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Description

Check if customer is subscriber, subscription profile and segment.

Requirements

Guzzle, PHP HTTP client

Installing

Run the Composer command to install the latest stable version:

php composer.phar -vvv require inicial/infoglobo-php

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

You can then later update using composer:

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.

Report any bug or suggest changes using git issues.