Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Latest commit

 

History

History

templates

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Templates

List Templates

Official Documentation


import { Client } from "@nuro.dev/mailersend.ts";

const client = new Client("API_KEY");

const result = await client.listTemplates({
  // ...
});
import { listTemplates } from "@nuro.dev/mailersend.ts";

const result = await listTemplates("API_KEY", {
  // ...
});

Get Template by ID

Official Documentation


import { Client } from "@nuro.dev/mailersend.ts";

const client = new Client("API_KEY");

const result = await client.templateById("TEMPLATE_ID");
import { templateById } from "@nuro.dev/mailersend.ts";

const result = await templateById("API_KEY", "TEMPLATE_ID");