Skip to content

Commit ede92e6

Browse files
committed
update incorrect method name in readme
1 parent 81f81af commit ede92e6

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
@@ -418,7 +418,7 @@ while (userConversations.hasNext()) {
418418
final Conversation conversation = Conversation.find("66");
419419
ConversationMessage conversationMessage = conversation.getConversationMessage();
420420
ConversationPartCollection parts = conversation.getConversationPartCollection();
421-
List<ConversationPart> partList = parts.getPageItems();
421+
List<ConversationPart> partList = parts.getPage();
422422
for (ConversationPart part : partList) {
423423
String partType = part.getPartType();
424424
Author author = part.getAuthor();
@@ -579,7 +579,7 @@ Some API classes have static `list()` methods that correspond to paginated API r
579579
These return a Collection object (eg `UserCollection`) which can be iterated in two
580580
ways
581581

582-
- The collection's `getPageItems()`, `hasNextPage()` and `nextPage()` methods - these are useful when you want to fetch one or just a few pages directly.
582+
- The collection's `getPage()`, `hasNextPage()` and `nextPage()` methods - these are useful when you want to fetch one or just a few pages directly.
583583

584584
- Java's inbuilt iterator methods `next()` and `hasNext()` - these are useful when you want to fetch data without manually handling pagination.
585585

0 commit comments

Comments
 (0)