public class Administrators extends CreateSendBase
jerseyClient, urlEncodingScheme| Constructor and Description |
|---|
Administrators(AuthenticationDetails auth)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
add(Administrator person)
Adds an administrator to the account.
|
void |
delete(String emailAddress)
Deletes the administrator with the specified email address from this account
|
Administrator |
details(String emailAddress)
Gets the details for the administrator with the given email address
|
void |
update(String originalEmailAddress,
Administrator newDetails)
Updates the details for an existing administrator
|
refreshTokenpublic Administrators(AuthenticationDetails auth)
auth - The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.public String add(Administrator person) throws CreateSendException
person - The administrator to add to the accountCreateSendException - Thrown when the API responds with HTTP Status >= 400public Administrator details(String emailAddress) throws CreateSendException
emailAddress - The email address of the administrator to get the details forCreateSendException - Thrown when the API responds with HTTP Status >= 400public void delete(String emailAddress) throws CreateSendException
emailAddress - The email address of the administrator to deleteCreateSendException - Thrown when the API responds with HTTP Status >= 400public void update(String originalEmailAddress, Administrator newDetails) throws CreateSendException
originalEmailAddress - The current email address of the existing administratornewDetails - The new details for the administrator.CreateSendException - Thrown when the API responds with HTTP Status >= 400Copyright © 2013. All Rights Reserved.