QuickBooks-V3-PHP-SDK icon indicating copy to clipboard operation
QuickBooks-V3-PHP-SDK copied to clipboard

Documentation Does Not Match QuickBooksOnline\API\DataService\Batch::AddQuery() signature

Open ajgale opened this issue 2 years ago • 1 comments

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)

ajgale avatar Aug 16 '21 17:08 ajgale

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.

ajgale avatar Aug 16 '21 18:08 ajgale