Package com.sparkpost.resources
Class ResourceRecipientLists
java.lang.Object
com.sparkpost.resources.ResourceRecipientLists
public class ResourceRecipientLists extends Object
Resource collection that is a 1-to-1 match to the Recipient Lists SparkPost
API.
See Recipient Lists API
See Recipient Lists API
- Author:
- grava
-
Constructor Summary
Constructors Constructor Description ResourceRecipientLists() -
Method Summary
Modifier and Type Method Description static Responsecreate(IRestConnection conn, Integer maxNumberOfRecipientErrors, RecipientList recipientList)static Responsedelete(IRestConnection conn, String recipientListId)static RecipientListsListAllResponselistAll(IRestConnection conn)static RecipientListRetrieveResponseretrieve(IRestConnection conn, String recipientListId, Boolean showRecipients)
-
Constructor Details
-
ResourceRecipientLists
public ResourceRecipientLists()
-
-
Method Details
-
create
public static Response create(IRestConnection conn, Integer maxNumberOfRecipientErrors, RecipientList recipientList) throws SparkPostException- Throws:
SparkPostException
-
retrieve
public static RecipientListRetrieveResponse retrieve(IRestConnection conn, String recipientListId, Boolean showRecipients) throws SparkPostException- Throws:
SparkPostException
-
listAll
public static RecipientListsListAllResponse listAll(IRestConnection conn) throws SparkPostException- Throws:
SparkPostException
-
delete
public static Response delete(IRestConnection conn, String recipientListId) throws SparkPostException- Throws:
SparkPostException
-