inicial / infoglobo-php
Info Globo Integration (PHP)
1.0.1
2019-08-09 20:32 UTC
Requires
- php: >=5.3
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-12-04 22:12:26 UTC
README
Description
Check if customer is subscriber, subscription profile and segment.
Requirements
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.