intercom-php icon indicating copy to clipboard operation
intercom-php copied to clipboard

Fetch conversation's by lead email?

Open saas786 opened this issue 3 years ago • 0 comments

Version info

  • intercom-php version: 4.4
  • Intercom API version: 2.4
  • PHP version: 7.4.9

Expected behavior

I was expecting to fetch all conversions for a specific lead, by lead email.

Actual behavior

It lists all the conversations regardless of of lead provided.

Steps to reproduce (as granular as possible, including screenshots where appropriate)

            $conversations = $client->conversations->getConversations([
                'type'  => 'lead',
                'email' => '[email protected]',
                'open'  => true, // false
            ]);

Logs

(
    [type] => conversation.list
    [pages] => stdClass Object
        (
            [type] => pages
            [next] => https://api.intercom.io/conversations?type=lead&email=lead%40gmail.com&open=1&per_page=20&page=2
            [page] => 1
            [per_page] => 20
            [total_pages] => 2377
        )
    [total_count] => 47524
    [conversations] => Array
        (

Ref: https://github.com/intercom/intercom-php/issues/192#issuecomment-325329872

saas786 avatar Mar 18 '22 13:03 saas786