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

Latest commit

 

History

History

scheduledMessages

Scheduled Messages

List Scheduled Messages

Official Documentation


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

const client = new Client("API_KEY");

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

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

Get Scheduled Message by ID

Official Documentation


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

const client = new Client("API_KEY");

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

const result = await scheduledMessageById("API_KEY", "MESSAGE_ID");

Delete Scheduled Message

Official Documentation


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

const client = new Client("API_KEY");

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

const result = await deleteScheduledMessage("API_KEY", "MESSAGE_ID");