QuickBooks-V3-PHP-SDK
QuickBooks-V3-PHP-SDK copied to clipboard
Documentation Does Not Match QuickBooksOnline\API\DataService\Batch::AddQuery() signature
https://developer.intuit.com/app/developer/qbo/docs/develop/sdks-and-samples-collections/php/synchronous-calls#batch-process
The following example code from the above link is incorrect:
$batch->AddQuery("select * from Customer startPosition 0 maxResults 20", "queryCustomer", "uniqueQuery");
AddQuery takes 2 parameters:
/**
* Adds the specified query.
* @param string $query IDS query.
* @param string $id unique batchitem id.
*/
public function AddQuery($query, $id)
Submitted PR only fixes examples in this repo. It doesn't look like the linked documentation is generated from those files, so at the moment I believe this is all I can do.