Skip to content

Commit d6e976c

Browse files
author
austin-intercom
committed
Merge pull request #106 from intercom/ah/fix_README_for_notes
Changing getNotes to getNotesForUser where appropriate
2 parents 8ee404c + d308316 commit d6e976c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ $intercom->createNote(array(
242242
)
243243
));
244244
// Iterate over all notes for a user via their email address
245-
$notes = $intercom->getNotes(array("email" => "[email protected]"));
245+
$notes = $intercom->getNotesForUser(array("email" => "[email protected]"));
246246
foreach($notes["notes"] as $note) {
247247
echo $note["body"] . PHP_EOL;
248248
}
249249
// Iterate over all notes for a user via their user_id
250-
$notes = $intercom->getNotes(array("user_id" => "123"));
250+
$notes = $intercom->getNotesForUser(array("user_id" => "123"));
251251
foreach($notes["notes"] as $note) {
252252
echo $note["body"] . PHP_EOL;
253253
}

0 commit comments

Comments
 (0)