Skip to content

Commit dc2f33f

Browse files
committed
Update README.md
Changing findUserByEmail(), findUserByUserID() and findUserById() to getUser(). After trying to work out why findUserByUserID() did not work, I realised it should just be getUser(). The example in the Docs - http://doc.intercom.io/api/#view-a-user show this correctly, but the README does not.
1 parent 5790970 commit dc2f33f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ Resources this API supports:
8282
// Get a list of users
8383
$intercom->getUsers();
8484
// Find user by email
85-
$intercom->findUserByEmail(array("email" => "[email protected]"));
85+
$intercom->getUser(array("email" => "[email protected]"));
8686
// Find user by user_id
87-
$intercom->findUserByUserID(array("user_id" => "123456"));
87+
$intercom->getUser(array("user_id" => "123456"));
8888
// Find user by id
89-
$intercom->findUserById(array("id" => "1"))
89+
$intercom->getUser(array("id" => "1"))
9090
// Create a new user
9191
$user = $intercom->createUser(array(
9292
"email" => "[email protected]",

0 commit comments

Comments
 (0)