public class Templates extends CreateSendBase
jerseyClient, urlEncodingScheme| Constructor and Description |
|---|
Templates(AuthenticationDetails auth)
Constructor used to create new templates.
|
Templates(AuthenticationDetails auth,
String templateID)
Constructor for working with existing templates.
|
| Modifier and Type | Method and Description |
|---|---|
String |
create(String clientID,
TemplateForCreate template)
Creates a new template for the specified client.
|
void |
delete()
Deletes the template with the current ID
|
TemplateDetails |
get()
Gets the details of the current template
|
String |
getTemplateID()
Gets the current template ID.
|
void |
setTemplateID(String templateID)
Sets the ID of the template to apply API calls to.
|
void |
update(TemplateForCreate template)
Updates a template with the specified details
|
refreshTokenpublic Templates(AuthenticationDetails auth)
auth - The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.public Templates(AuthenticationDetails auth, String templateID)
auth - The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.templateID - The Template ID to use when making API calls.public String getTemplateID()
public void setTemplateID(String templateID)
templateID - The ID of the template to apply API calls to.public String create(String clientID, TemplateForCreate template) throws CreateSendException
clientID - The ID of the client to create the template for.template - The template details.CreateSendException - Thrown when the API responds with HTTP Status >= 400public TemplateDetails get() throws CreateSendException
CreateSendException - Thrown when the API responds with HTTP Status >= 400public void update(TemplateForCreate template) throws CreateSendException
template - The template details to useCreateSendException - Thrown when the API responds with HTTP Status >= 400public void delete()
throws CreateSendException
CreateSendException - Thrown when the API responds with HTTP Status >= 400Copyright © 2013. All Rights Reserved.