Skip to content

Commit 4c74d63

Browse files
author
Igor Balos
authored
Merge pull request #20 from sigand/patch-1
Add query parameters to suppressions dump
2 parents 4e66d04 + bbd8ee0 commit 4c74d63

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
@@ -403,6 +403,12 @@ public Suppressions getSuppressions(String messageStream) throws PostmarkExcepti
403403
getEndpointUrl(messageStreamsEndpoint) + messageStream + suppressionsEndpoint + "dump");
404404
return dataHandler.fromJson(response, Suppressions.class);
405405
}
406+
407+
public Suppressions getSuppressions(String messageStream, Parameters parameters) throws PostmarkException, IOException {
408+
String response = execute(HttpClient.REQUEST_TYPES.GET,
409+
getEndpointUrl(messageStreamsEndpoint) + messageStream + suppressionsEndpoint + "dump" + parameters);
410+
return dataHandler.fromJson(response, Suppressions.class);
411+
}
406412

407413
public SuppressionStatuses createSuppressions(String messageStream, SuppressionEntries suppressions)
408414
throws PostmarkException, IOException {

0 commit comments

Comments
 (0)