com.createsend
Class Administrators
java.lang.Object
com.createsend.CreateSendBase
com.createsend.Administrators
public class Administrators
- extends CreateSendBase
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Administrators
public Administrators(AuthenticationDetails auth)
- Constructor.
- Parameters:
auth - The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.
add
public String add(Administrator person)
throws CreateSendException
- Adds an administrator to the account.
- Parameters:
person - The administrator to add to the account
- Returns:
- The email address of the newly added administrator
- Throws:
CreateSendException - Thrown when the API responds with HTTP Status >= 400- See Also:
-
Adding a subscriber
details
public Administrator details(String emailAddress)
throws CreateSendException
- Gets the details for the administrator with the given email address
- Parameters:
emailAddress - The email address of the administrator to get the details for
- Returns:
- The details of the person
- Throws:
CreateSendException - Thrown when the API responds with HTTP Status >= 400- See Also:
-
Getting subscriber details
delete
public void delete(String emailAddress)
throws CreateSendException
- Deletes the administrator with the specified email address from this account
- Parameters:
emailAddress - The email address of the administrator to delete
- Throws:
CreateSendException - Thrown when the API responds with HTTP Status >= 400- See Also:
-
Deleting a subscriber
update
public void update(String originalEmailAddress,
Administrator newDetails)
throws CreateSendException
- Updates the details for an existing administrator
- Parameters:
originalEmailAddress - The current email address of the existing administratornewDetails - The new details for the administrator.
- Throws:
CreateSendException - Thrown when the API responds with HTTP Status >= 400- See Also:
-
Updating a subscriber
Copyright © 2013. All Rights Reserved.