Sendio.Templates (sendio v1.1.0)
Manage templates in Sendio.
Summary
Functions
Creates a new template.
Duplicates a template.
Gets a template by ID.
Lists all templates.
Publishes a template.
Removes a template.
Updates a template.
Functions
Link to this function
create(client \\ Sendio.client(), opts)
@spec create(Sendio.Client.t(), Keyword.t()) :: Sendio.Client.response(Sendio.Templates.Template.t())
Creates a new template.
Options
:name- The name of the template (required):subject- The email subject:from- The sender email address:html- The HTML content:text- The plain text content
Link to this function
duplicate(client \\ Sendio.client(), template_id)
@spec duplicate(Sendio.Client.t(), String.t()) :: Sendio.Client.response(Sendio.Templates.Template.t())
Duplicates a template.
Link to this function
get(client \\ Sendio.client(), template_id)
@spec get(Sendio.Client.t(), String.t()) :: Sendio.Client.response(Sendio.Templates.Template.t())
Gets a template by ID.
Link to this function
list(client \\ Sendio.client())
@spec list(Sendio.Client.t()) :: Sendio.Client.response(Sendio.List.t(Sendio.Templates.Template.t()))
Lists all templates.
Link to this function
publish(client \\ Sendio.client(), template_id)
@spec publish(Sendio.Client.t(), String.t()) :: Sendio.Client.response(Sendio.Templates.Template.t())
Publishes a template.
Link to this function
remove(client \\ Sendio.client(), template_id)
@spec remove(Sendio.Client.t(), String.t()) :: Sendio.Client.response(Sendio.Empty.t())
Removes a template.
Link to this function
update(client \\ Sendio.client(), template_id, opts)
@spec update(Sendio.Client.t(), String.t(), Keyword.t()) :: Sendio.Client.response(Sendio.Templates.Template.t())
Updates a template.
Options
:name- The name of the template:subject- The email subject:from- The sender email address:html- The HTML content:text- The plain text content