Skip to content

getUsers with Id #171

@AntoineLemaire

Description

@AntoineLemaire

Version info

  • intercom-php version: 3.0
  • PHP version: 7.0

Expected behavior

I try to get the complete user from a hook.

$conversation = $intercomClient->conversations->getConversation($request->get('data')['item']['id']);
dump($conversation);
$user = $intercomClient->users->getUsers(['id' => $conversation->user->id]);
dump($user);

$user should contain only one user

Actual behavior

Even if my userId is good (https://app.intercom.io/a/apps/{myappid}/users/{myUserId}/all-conversations exist) $user contains a user.list with all my users. Not only the one I'm looking for

Logs

capture du 2016-09-22 13-19-37

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