node-iterable-api is a Node.js client library that provides a wrapper around the Iterable API, enabling developers to programmatically interact with various Iterable services such as managing user lists, tracking events, updating user profiles, triggering campaigns, and handling commerce data. The current stable version is 1.2.0. The package has seen irregular updates, including recent dependency and security fixes in v1.0.3, indicating active maintenance rather than a strict release cadence. A key differentiator is its direct mapping to the Iterable API documentation, though it's explicitly noted that not all Iterable API resources are fully implemented, requiring developers to check `lib/api.js` for current support. This library is primarily designed for CommonJS environments.
npm install node-iterable-apiVerified import paths — ran on the pinned version, not inferred.
Initializes the Iterable API client and demonstrates fetching lists and updating a user profile.
Consult `lib/api.js` for implemented resources. If a needed resource is missing, consider contributing to the library or making direct HTTP calls to the Iterable API.
Always use `const client = require('node-iterable-api').create('<api-key>')` for consistent and reliable operation within Node.js applications.Regularly run `npm audit` and address reported vulnerabilities by updating dependencies or following Snyk's recommendations. Monitor the project's GitHub for security advisories.
Verify the resource and action are listed in `lib/api.js` as implemented. If not, you will need to implement it yourself or use a direct HTTP request to the Iterable API.
Ensure `client.create()` is called with your valid Iterable API key, typically stored as an environment variable: `client.create(process.env.ITERABLE_API_KEY)`.
Check your API key for correctness, ensure the request payload matches Iterable's API documentation, and inspect the `err.body` or `err.message` in the catch block for specific error details from the Iterable API.
No dependency data recorded yet.