<?php require_once dirname(__FILE__) . '/config.php'; require_once dirname(__FILE__) . '/views/header.tpl.php'; ?> <pre> <?php $EmployeeService = new QuickBooks_IPP_Service_Employee(); $employees = $EmployeeService->query($Context, $realm, "SELECT * FROM Employee "); //print_r($customers); foreach ($employees as $Employee) { print 'Employee id=' . $Employee->getId() . ' has a name of ' . $Employee->getGivenName() . ' ' . $Employee->getFamilyName() . "\n"; } print "\n\n\n\n"; print 'Request [' . $IPP->lastRequest() . ']'; print "\n\n\n\n"; print 'Response [' . $IPP->lastResponse() . ']'; print "\n\n\n\n"; ?> </pre> <?php require_once dirname(__FILE__) . '/views/footer.tpl.php';
ini_set('display_errors', 1); error_reporting(E_ALL | E_STRICT); require_once '../QuickBooks.php'; // $username = '******'; $password = '******'; $token = 'bf8cp2mihs6vsdibgqsybinugvj'; $realmID = 182938192; $application = 'bfrccpnge'; // $IPP = new QuickBooks_IPP(); $Context = $IPP->authenticate($username, $password, $token); $IPP->application($Context, $application); //$IPP->useIDSParser(false); $Service = new QuickBooks_IPP_Service_Employee(); $Employee = $Service->findById($Context, $realmID, '{NG-124029}'); //print_r($Employee); print $Service->lastRequest($Context); print "\n\n\n\n\n"; print $Service->lastResponse($Context); print "\n\n\n\n\n"; exit; $Employee = new QuickBooks_IPP_Object_Employee(); $Email = new QuickBooks_IPP_Object_Email(); $Email->setAddress('*****@*****.**'); $Email->setTag('Business'); $Employee->setEmail($Email); $Phone = new QuickBooks_IPP_Object_Phone(); $Phone->setDeviceType('Mobile'); $Phone->setFreeFormNumber('860-634-1602');