|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.createsend.CreateSendBase
com.createsend.Subscribers
public class Subscribers
Provides methods for accessing all Subscriber resources in the Campaign Monitor API
| Field Summary |
|---|
| Fields inherited from class com.createsend.CreateSendBase |
|---|
jerseyClient, urlEncodingScheme |
| Constructor Summary | |
|---|---|
Subscribers(AuthenticationDetails auth,
String listID)
Constructor. |
|
| Method Summary | |
|---|---|
String |
add(SubscriberToAdd subscriber)
Adds a single subscriber to the specified list |
ImportResult |
addMany(SubscribersToAdd subscribers)
Import many subscribers into the specified list |
void |
delete(String emailAddress)
Moves the given email address into the deleted list |
Subscriber |
details(String emailAddress)
Gets the details for the subscriber with the given email address in the specified list |
String |
getListID()
Gets the current list ID. |
HistoryItem[] |
history(String emailAddress)
Gets the complete history for a given subscriber in the specified list |
void |
setListID(String listID)
Sets the current list ID. |
void |
unsubscribe(String emailAddress)
Unsubscribes the given email address from the specified list |
void |
update(String originalEmailAddress,
SubscriberToAdd newDetails)
Updates any provided information for an existing subscriber |
| Methods inherited from class com.createsend.CreateSendBase |
|---|
refreshToken |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Subscribers(AuthenticationDetails auth,
String listID)
auth - The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.listID - The List ID to use when making API calls.| Method Detail |
|---|
public void setListID(String listID)
listID - The ID of the list to apply any calls to.public String getListID()
public String add(SubscriberToAdd subscriber)
throws CreateSendException
subscriber - The subscriber to add to the list
CreateSendException - Thrown when the API responds with HTTP Status >= 400
public ImportResult addMany(SubscribersToAdd subscribers)
throws CreateSendException
subscribers - The subscribers to add to the list
CreateSendException - Thrown when the API responds with HTTP Status >= 400
public Subscriber details(String emailAddress)
throws CreateSendException
emailAddress - The email address to get the subscriber details for
CreateSendException - Thrown when the API responds with HTTP Status >= 400
public HistoryItem[] history(String emailAddress)
throws CreateSendException
emailAddress - The email address of the subscriber to get the history for
CreateSendException - Thrown when the API responds with HTTP Status >= 400
public void unsubscribe(String emailAddress)
throws CreateSendException
emailAddress - The email address to unsubscibe
CreateSendException - Thrown when the API responds with HTTP Status >= 400
public void delete(String emailAddress)
throws CreateSendException
emailAddress - The email address to delete
CreateSendException - Thrown when the API responds with HTTP Status >= 400
public void update(String originalEmailAddress,
SubscriberToAdd newDetails)
throws CreateSendException
originalEmailAddress - The current email address of the existing subscribernewDetails - The new details for the subscriber. Any details included here will be used in the updated.
Any details omitted will not be changed.
CreateSendException - Thrown when the API responds with HTTP Status >= 400
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||