$configuration
$configuration : \ElasticEmailClient\ApiConfiguration
Add(string $name, string $subject, string $fromEmail, string $fromName, \ElasticEmailEnums\TemplateType $templateType = \ElasticEmailEnums\TemplateType::RawHTML, \ElasticEmailEnums\TemplateScope $templateScope = \ElasticEmailEnums\TemplateScope::EEPrivate, string $bodyHtml = null, string $bodyText = null, string $css = null, integer $originalTemplateID) : integer
Create new Template. Needs to be sent using POST method
| string | $name | Filename |
| string | $subject | Default subject of email. |
| string | $fromEmail | Default From: email address. |
| string | $fromName | Default From: name. |
| \ElasticEmailEnums\TemplateType | $templateType | 0 for API connections |
| \ElasticEmailEnums\TemplateScope | $templateScope | Enum: 0 - private, 1 - public, 2 - mockup |
| string | $bodyHtml | HTML code of email (needs escaping). |
| string | $bodyText | Text body of email. |
| string | $css | CSS style |
| integer | $originalTemplateID | ID number of original template. |
EECopy(integer $templateID, string $name, string $subject, string $fromEmail, string $fromName) : \ElasticEmailEnums\Template
Copy Selected Template
| integer | $templateID | ID number of template. |
| string | $name | Filename |
| string | $subject | Default subject of email. |
| string | $fromEmail | Default From: email address. |
| string | $fromName | Default From: name. |
GetList(integer $limit = 500, integer $offset) : \ElasticEmailEnums\TemplateList
Lists your templates
| integer | $limit | Maximum of loaded items. |
| integer | $offset | How many items should be loaded ahead. |
LoadTemplate(integer $templateID, boolean $ispublic = false) : \ElasticEmailEnums\Template
Load template with content
| integer | $templateID | ID number of template. |
| boolean | $ispublic |
Update(integer $templateID, \ElasticEmailEnums\TemplateScope $templateScope = \ElasticEmailEnums\TemplateScope::EEPrivate, string $name = null, string $subject = null, string $fromEmail = null, string $fromName = null, string $bodyHtml = null, string $bodyText = null, string $css = null, boolean $removeScreenshot = true)
Update existing template, overwriting existing data. Needs to be sent using POST method.
| integer | $templateID | ID number of template. |
| \ElasticEmailEnums\TemplateScope | $templateScope | Enum: 0 - private, 1 - public, 2 - mockup |
| string | $name | Filename |
| string | $subject | Default subject of email. |
| string | $fromEmail | Default From: email address. |
| string | $fromName | Default From: name. |
| string | $bodyHtml | HTML code of email (needs escaping). |
| string | $bodyText | Text body of email. |
| string | $css | CSS style |
| boolean | $removeScreenshot |