Skip to content

Commit 542d9b9

Browse files
author
amburke
authored
Add method for deleting a user
There wasn't a very explicit way to delete a user available for customers. They seemed confused by this.
1 parent 09fc0ce commit 542d9b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/IntercomUsers.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,15 @@ public function getUsers($options)
2121
{
2222
return $this->client->get("users", $options);
2323
}
24+
25+
public function deleteUser($id, $options = [])
26+
{
27+
$path = $this->userPath($id);
28+
return $this->client->delete($path, $options);
29+
}
30+
31+
public function userPath($id)
32+
{
33+
return "users/" . $id;
34+
}
2435
}

0 commit comments

Comments
 (0)