helpscout / helpscout-api-php

PHP Wrapper for the Help Scout API
MIT License
99 stars 62 forks source link

Conversations end point returning no conversations, or only 1 conversation #316

Closed mdabrowski78 closed 10 months ago

mdabrowski78 commented 10 months ago

Thank you for taking the time to submit an issue with all the details shown below. Our engineering team monitors issues submitted and strives to respond with 1-2 business days.

Current behavior Filtering for conversations by 'customerIds' or 'email:...' either returns no conversations for a customer, or only one conversations., whereas search results in the browser like the following URL returns all conversations https://secure.helpscout.net/search/?query=customerIds%3A618504138

Expected behavior I expect withQuery("email:customerEmail") or withQuery("customerIds:618504138") should return the same list as if I am accessing it via URL: https://secure.helpscout.net/search/?query=customerIds%3A618504138

Same if I am searching by email:users@email

Steps to reproduce $client = ApiClientFactory::createClient(); $client = $client->useClientCredentials($config['appId'], $config['appSecret']); $filters = (new \HelpScout\Api\Conversations\ConversationFilters())
->withQuery('customerIds:618504138');

$conversations = $client->conversations()->list($filters);

// At tis point, I have a page collection print_r($conversations);

// This should give me an array of conversations $conversations = $conversations->toArray();

// Gives me a blank array print_r($conversations);