Package com.mailersend.sdk.templates
Class Templates
- java.lang.Object
-
- com.mailersend.sdk.templates.Templates
-
public class Templates extends Object
Templates class.
- Version:
- $Id: $Id
- Author:
- mailersend
-
-
Constructor Summary
Constructors Constructor Description Templates(MailerSend ref)Do not initialize directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MailerSendResponsedeleteTemplate(String templateId)Delete the template with the given idTemplatesdomainId(String domainId)Set the domain IDTemplategetTemplate(String templateId)Retrieve the template with the given idTemplatesListgetTemplates()Get templatesTemplateslimit(int limit)Set the results limit (10 - 100)Templatespage(int page)Set the page of the request
-
-
-
Constructor Detail
-
Templates
public Templates(MailerSend ref)
Do not initialize directly. This should only be accessed from MailerSend.analytics- Parameters:
ref- aMailerSendobject.
-
-
Method Detail
-
page
public Templates page(int page)
Set the page of the request- Parameters:
page- a int.- Returns:
- a
Templatesobject.
-
limit
public Templates limit(int limit)
Set the results limit (10 - 100)- Parameters:
limit- a int.- Returns:
- a
Templatesobject.
-
getTemplates
public TemplatesList getTemplates() throws MailerSendException
Get templates- Returns:
- a
TemplatesListobject. - Throws:
MailerSendException
-
getTemplate
public Template getTemplate(String templateId) throws MailerSendException
Retrieve the template with the given id- Parameters:
templateId- aStringobject.- Returns:
- a
Templateobject. - Throws:
MailerSendException
-
deleteTemplate
public MailerSendResponse deleteTemplate(String templateId) throws MailerSendException
Delete the template with the given id- Parameters:
templateId- aStringobject.- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
-