<?php

ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);
require_once '../QuickBooks.php';
//
$username = '******';
$password = '******';
$token = 'tex3r7hwifx6cci3zk43ibmnd';
$realmID = 173642438;
//
$IPP = new QuickBooks_IPP();
$Context = $IPP->authenticate($username, $password, $token);
$IPP->application('be9mh7qd5');
//$IPP->useDebugMode(true);
//print_r($IPP->sendInvitation($Context, '*****@*****.**'));
//print_r($IPP->getAvailableCompanies($Context));
$User = $IPP->getUserInfo($Context);
print_r($User);
$roles = $IPP->getUserRoles($Context, $User->getUserId());
print_r($roles);
$info = $IPP->getDBInfo($Context);
print_r($info);