I am trying to create a php application that will sync data to QuickBooks. I am using the consolibyte PHP framework/examples. The examples are pretty good, but I am have a very hard time understanding how I can query customer data and print the customer's billing address.
Here is the sample code that works well, for printing the customer's name and id. If you have experience with this framework, I would greatly appreciate any help!
$clientName = $_POST["clientName"];
// Set the IPP version to v3
$IPP->version(QuickBooks_IPP_IDS::VERSION_3);
$CustomerService = new QuickBooks_IPP_Service_Customer();
$customers = $CustomerService->query($Context, $realm, "SELECT * FROM Customer WHERE CompanyName like '%$clientName%'");
print '~{"response":[';
foreach ($customers as $Customer)
{
$customerID = str_replace("{-", "", $Customer->getId());
$customerID = str_replace("}", "", $customerID);
print('{"QB_customerAddress":"'.$Customer->SHOW BILLING ADDRESS HERE.'", "QB_customerId":"' . $customerID . '", "QB_customerName":"' . $Customer->getFullyQualifiedName().'"},');
}
print ']}~=';