Skip to main content
Module

x/sparkpost/templates.ts>Templates

Send emails from deno via the SparkPost API
Latest
class Templates
extends Base
import { Templates } from "https://deno.land/x/sparkpost@0.1.1/templates.ts";

Methods

create(template: any)

Create a new template.

delete(id: string)

Delete an existing template.

get(id: string, options: any)

Get details about a specified template by its id.

List an overview of all templates.

preview(id: string, options: any)

Preview the most recent version of an existing template by id.

update(
id: string,
template: any,
options: any,
)

Update an existing template.