Skip to content

Criteria in exportData method make the client raise an error #1

@SuperstrongBE

Description

@SuperstrongBE

Hi,i'm using your php ZOHO report client with ease.
But, using Criteria in exportData method make the client raise an error.
Steps to reproduce

  1. Create Report with token
    $zohoReportClient = new ReportClient($zohoAccessToken);
  2. Get table URI
    $zohoTableUri = $zohoReportClient >getURI($zohoUserEmail,$db,$table);
  3. Create criteria and pass it to the exportData method
    $criteria = 'wb_company="mycompany"';
    $jsonData = $zohoReportClient->exportData($zohoTableUri, 'JSON',$criteria,
    ['ZOHO_VALID_JSON'=>'true');

Result
Raise an ParseException, the "wb_company" field are well in my table.

Expected result
At least and empty result if "mycompany" is not found in the table.

Can you help me with this issue. Maybe this is a misunderstanding of the criteria formating for the request. But ZOHO documentation is vague about criteria formating.
Thank

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions