if ($Context = $IPP->context()) {
    // Set the DBID
    $IPP->dbid($Context, 'something');
    // Set the IPP flavor
    $IPP->flavor($creds['qb_flavor']);
    // Get the base URL if it's QBO
    if ($creds['qb_flavor'] == QuickBooks_IPP_IDS::FLAVOR_ONLINE) {
        $IPP->baseURL($IPP->getBaseURL($Context, $realm));
    }
    //print('Base URL is [' . $IPP->baseURL() . ']' . "\n\n");
    $CustomerService = new QuickBooks_IPP_Service_Customer();
    $perpage = 10;
    $page = 1;
    do {
        print '<h3>PAGE ' . $page . '</h3>' . "\n\n";
        $list = $CustomerService->findAll($Context, $realm, null, $page, $perpage);
        foreach ($list as $Customer) {
            print '&bull; ' . $Customer->getId() . ' => ' . $Customer->getName() . '<br>' . "\n\n";
        }
        $page++;
    } while (count($list) >= $perpage);
    /*
    print("\n\n\n\n");
    print('Request [' . $IPP->lastRequest() . ']');
    print("\n\n\n\n");
    print('Response [' . $IPP->lastResponse() . ']');
    print("\n\n\n\n");
    */
} else {
    die('Unable to load a context...?');
}
header('Content-Type: text/plain');
ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '/Users/kpalmer/Projects/QuickBooks/');
require_once '../QuickBooks.php';
//
$username = '******';
$password = '******';
$token = 'tex3r7hwifx6cci3zk43ibmnd';
$realmID = 173642438;
//
$IPP = new QuickBooks_IPP();
if ($Context = $IPP->authenticate($username, $password, $token)) {
    $IPP->application($Context, 'be9mh7qd5');
    $user = $IPP->getUserInfo($Context);
    print_r($user);
    //exit;
    $Service = new QuickBooks_IPP_Service_Customer();
    if ($list = $Service->findAll($Context, $realmID)) {
        //print_r($list);
        foreach ($list as $Customer) {
            print 'Name is [' . $Customer->getName() . ']' . "\n";
        }
    }
    //print($Service->lastRequest());
    //print($Service->lastResponse());
} else {
    print 'Auth failed!';
}
exit;