How to use the postmark.AdminClient function in postmark

To help you get started, we’ve selected a few postmark examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / postmark / postmark-tests.ts View on Github external
const message = { To: "me", From: "you" };
const templateMessage = { ...message, TemplateId: "1" };
const filter = { offset: 0 };
const editSender = { Color: "black" };
const templateValidator = {
    Subject: "123",
    HtmlBody: "123345",
    TextBody: "123535"

declare const error: postmark.PostmarkError;

declare function callback(err: any, data: any): undefined;

const client = new postmark.Client("124345", options);
const adminClient = new postmark.AdminClient("1123235", options);

client.send(message, callback);
client.sendEmailWithTemplate(templateMessage, callback);
client.batch([message, message], callback);
client.sendEmail(message, callback);
client.sendEmailBatch([message, message], callback);
client.getBounces(filter, callback);
client.getBounce(1, callback);
client.getBounceDump(1, callback);
client.activateBounce(1, callback);
client.editServer(editSender, callback);
client.getOutboundMessages(filter, callback);
client.getOutboundMessageDetails(1, callback);


Official Node.js client library for the Postmark HTTP API -

Latest version published 6 months ago

Package Health Score

76 / 100
Full package analysis