|
|||||||||
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,
java.lang.String listID)
Constructor. |
Method Summary | |
---|---|
java.lang.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(java.lang.String emailAddress)
Moves the given email address into the deleted list |
Subscriber |
details(java.lang.String emailAddress)
Gets the details for the subscriber with the given email address in the specified list |
java.lang.String |
getListID()
Gets the current list ID. |
HistoryItem[] |
history(java.lang.String emailAddress)
Gets the complete history for a given subscriber in the specified list |
void |
setListID(java.lang.String listID)
Sets the current list ID. |
void |
unsubscribe(java.lang.String emailAddress)
Unsubscribes the given email address from the specified list |
void |
update(java.lang.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, java.lang.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(java.lang.String listID)
listID
- The ID of the list to apply any calls to.public java.lang.String getListID()
public java.lang.String add(SubscriberToAdd subscriber) throws CreateSendException
subscriber
- The subscriber to add to the list
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public ImportResult addMany(SubscribersToAdd subscribers) throws CreateSendException
subscribers
- The subscribers to add to the list
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public Subscriber details(java.lang.String emailAddress) throws CreateSendException
emailAddress
- The email address to get the subscriber details for
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public HistoryItem[] history(java.lang.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 >= 400public void unsubscribe(java.lang.String emailAddress) throws CreateSendException
emailAddress
- The email address to unsubscibe
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public void delete(java.lang.String emailAddress) throws CreateSendException
emailAddress
- The email address to delete
CreateSendException
- Thrown when the API responds with HTTP Status >= 400public void update(java.lang.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 |