Skip to content

Commit 8c8b7fb

Browse files
committed
Merge branch 'master' of github.com:wildbit/postmark-java
2 parents 63ec7ac + 4c74d63 commit 8c8b7fb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/com/wildbit/java/postmark/client/ApiClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ public Suppressions getSuppressions(String messageStream) throws PostmarkExcepti
406406
getEndpointUrl(messageStreamsEndpoint) + messageStream + suppressionsEndpoint + "dump");
407407
return dataHandler.fromJson(response, Suppressions.class);
408408
}
409+
410+
public Suppressions getSuppressions(String messageStream, Parameters parameters) throws PostmarkException, IOException {
411+
String response = execute(HttpClient.REQUEST_TYPES.GET,
412+
getEndpointUrl(messageStreamsEndpoint) + messageStream + suppressionsEndpoint + "dump" + parameters);
413+
return dataHandler.fromJson(response, Suppressions.class);
414+
}
409415

410416
public SuppressionStatuses createSuppressions(String messageStream, SuppressionEntries suppressions)
411417
throws PostmarkException, IOException {

0 commit comments

Comments
 (0)