Klaviyo.Template (klaviyo v2.3.0)

Link to this section Summary

Functions

Return all email templates.

Create a copy of an email template.

Create an email template.

Delete an email template.

Renders HTML and text versions of an email template.

Renders and sends an email template.

Update an email template.

Link to this section Functions

@spec all() :: Klaviyo.Operation.t()

Return all email templates.

Email templates are returned in sorted order by name.

Link to this function

clone(template_id, params)

@spec clone(String.t(), map()) :: Klaviyo.Operation.t()

Create a copy of an email template.

@spec create(map()) :: Klaviyo.Operation.t()

Create an email template.

Link to this function

delete(template_id)

@spec delete(String.t()) :: Klaviyo.Operation.t()

Delete an email template.

Link to this function

render(template_id, params \\ %{})

@spec render(String.t(), map()) :: Klaviyo.Operation.t()

Renders HTML and text versions of an email template.

Link to this function

send(template_id, params)

@spec send(String.t(), map()) :: Klaviyo.Operation.t()

Renders and sends an email template.

Link to this function

update(template_id, params)

@spec update(String.t(), map()) :: Klaviyo.Operation.t()

Update an email template.

Only updates imported HTML templates.