-
Notifications
You must be signed in to change notification settings - Fork 33
Templates pushes
Igor Balos edited this page Dec 24, 2018
·
2 revisions
For these API requests you will need to use a account API token. Once you obtain it, you will need to use account API client.
let postmark = require("postmark")
const accountToken = "xxxx-xxxxx-xxxx-xxxxx-xxxxxx"
let accountClient = new postmark.AccountClient(accountToken);
accountClient.pushTemplates({SourceServerID:1, DestinationServerID:2, PerformChanges: false}).then((result:TemplatesPush) => {
console.log(result.TotalCount);
console.log(result.Templates[0].Action);
console.log(result.Templates[0].Alias);
console.log(result.Templates[0].Name);
console.log(result.Templates[0].TemplateId);
}).catch((error) => {
console.error(error);
});
For additional information about the capabilities of the Postmark API, see Postmark Developers Documentation.
- Overview
- Migration from older version
- Getting started
- Email sending
- Bounces
- Templates
- Templates Push
- Server
- Servers
- Message Streams
- Webhooks
- Messages
- Domains
- Sender Signatures
- Stats
- Trigger Inbound Rules
- Suppressions
- Data Removal
- Embedding images in emails
- Error Handling
- Handling Web Hooks
- Mocking requests
- Troubleshooting
- Known issues and how to resolve them