Package com.sparkpost.resources
Class ResourceSuppressionList
java.lang.Object
com.sparkpost.resources.ResourceSuppressionList
public class ResourceSuppressionList extends Object
Resource collection that is a 1-to-1 match to the Suppression List SparkPost
API.
See Suppression List API
See Suppression List API
- Author:
- grava
-
Constructor Summary
Constructors Constructor Description ResourceSuppressionList() -
Method Summary
Modifier and Type Method Description static SupressionListResponsecheck(IRestConnection conn, String email)static ResponseinsertOrUpdate(IRestConnection conn, String email, SuppressionListEntry entry)static SupressionListResponseinsertOrUpdateBulk(IRestConnection conn, SuppressionList suppressionList)static SupressionListResponseremove(IRestConnection conn, String email)static SupressionListResponsesearch(IRestConnection conn, String to, String from, String types, String limit)
-
Constructor Details
-
ResourceSuppressionList
public ResourceSuppressionList()
-
-
Method Details
-
insertOrUpdate
public static Response insertOrUpdate(IRestConnection conn, String email, SuppressionListEntry entry) throws SparkPostException- Throws:
SparkPostException
-
insertOrUpdateBulk
public static SupressionListResponse insertOrUpdateBulk(IRestConnection conn, SuppressionList suppressionList) throws SparkPostException- Throws:
SparkPostException
-
search
public static SupressionListResponse search(IRestConnection conn, String to, String from, String types, String limit) throws SparkPostException- Throws:
SparkPostException
-
check
public static SupressionListResponse check(IRestConnection conn, String email) throws SparkPostException- Throws:
SparkPostException
-
remove
public static SupressionListResponse remove(IRestConnection conn, String email) throws SparkPostException- Throws:
SparkPostException
-