A simple Node.js REST client library for the SendPulse email marketing and messaging API. Current stable version is 1.1.7. The library provides methods to manage address books, send emails, and interact with other SendPulse features. It is maintained by SendPulse but has low release cadence. Compared to alternatives like nodemailer, this library is official and simplifies authentication via API user ID and secret. However, it uses a callback-based API and stores tokens on disk, which may require adaptation for modern async patterns.
npm install sendpulse-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize the client and list address books. Requires API credentials from SendPulse settings. Uses a callback to handle the response.
Use a writable directory like /tmp or an absolute path. Alternatively, implement custom token storage by modifying the library.
Wrap calls in a Promise manually or use util.promisify from Node.js core.
Check the 'error' parameter in callback; it may contain a parsed error object with status code and message.
Ensure TOKEN_STORAGE points to a writable directory; e.g., '/tmp/' on Unix systems.
Always provide a callback function as the last argument to methods like listAddressBooks(callback).
No dependency data recorded yet.