Skip to content

Commit d7fffb9

Browse files
author
Muhammad Anas
committed
# Get details of a single user.
1 parent afff207 commit d7fffb9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/IntercomUsers.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,19 @@ public function getUsers($options)
2121
{
2222
return $this->client->get("users", $options);
2323
}
24-
24+
25+
public function getUser($id, $options = [])
26+
{
27+
$path = $this->userPath($id);
28+
return $this->client->get($path, $options);
29+
}
30+
2531
public function deleteUser($id, $options = [])
2632
{
2733
$path = $this->userPath($id);
2834
return $this->client->delete($path, $options);
2935
}
30-
36+
3137
public function userPath($id)
3238
{
3339
return "users/" . $id;

0 commit comments

Comments
 (0)