Skip to content

Commit d1a8796

Browse files
authored
Merge pull request #169 from intercom/MM/conversations_list
add conversations list to readme
2 parents c9556b2 + 1315e73 commit d1a8796

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,12 @@ ContactMessage contactMessage = new ContactMessage()
396396
.setUser(contact);
397397
Conversation.create(contactMessage);
398398

399+
//list all conversations
400+
ConversationCollection conversations = Conversation.list();
401+
while (conversations.hasNext()) {
402+
Conversation conversation = conversations.next();
403+
}
404+
399405
// find admin conversations
400406
Map<String, String> params = Maps.newHashMap();
401407
params.put("type", "admin");

0 commit comments

Comments
 (0)