Skip to content

Commit dc7adbc

Browse files
thewheatchoran
authored andcommitted
Add support for display_as when finding conversation (#239)
1 parent 7085e8f commit dc7adbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

intercom-java/src/main/java/io/intercom/api/Conversation.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ public static Conversation find(String id) throws InvalidException, Authorizatio
5151
return resource.get(Conversation.class);
5252
}
5353

54+
public static Conversation find(String id, Map<String, String> params) throws InvalidException, AuthorizationException {
55+
final HttpClient resource = new HttpClient(UriBuilder.newBuilder().path("conversations").path(id).query(params).build());
56+
return resource.get(Conversation.class);
57+
}
58+
5459
public static ConversationCollection list() throws InvalidException, AuthorizationException {
5560
return DataResource.list(SENTINEL, "conversations", ConversationCollection.class);
5661
}

0 commit comments

Comments
 (0)