code_junkie

PHP + Quickbook Online Edition (API Integration)?

Nov 11th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // Create the connection to QuickBooks
  2. $API = new QuickBooks_API(...);
  3.  
  4. // Build the Customer object
  5. $Customer = new QuickBooks_Object_Customer();
  6. $Customer->setName($name);
  7. $Customer->setShipAddress('134 Stonemill Road', '', '', '', '', 'Storrs', 'CT', '', '06268');
  8.  
  9. // Send the request to QuickBooks
  10. $API->addCustomer($Customer, '_add_customer_callback', 15);
  11.  
  12. // The framework also supports processing raw qbXML requests
  13. $API->qbxml('
  14. <CustomerQueryRq>
  15. <FullName>Keith Palmer Jr.</FullName>
  16. </CustomerQueryRq>', '_raw_qbxml_callback');
Add Comment
Please, Sign In to add comment