Registry / marketing / drip-nodejs

drip-nodejs

JSON →
library3.1.4jsnpmunverified

A complete Node.js wrapper for the Drip v2 REST API, simplifying integration with Drip's email marketing platform. Version 3.1.4 (stable, infrequent releases) introduces breaking changes that simplify payload schemas for batch endpoints, moving from nested structures to flat arrays. Key differentiators: handles authentication (API token or OAuth2) and provides promise-based methods with optional callback support. Compared to alternatives, this is the official community-maintained library for Drip integrations.

marketing
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The package exports a factory function as default. ESM: import drip from 'drip-nodejs'; const client = drip({...}).

const client = require('drip-nodejs')({ token: '...', accountId: '...' })

No named export; the factory is the default export.

const drip = require('drip-nodejs'); const client = drip({ token: '...', accountId: '...' })

Methods return promises; callback is optional second argument. batchSubscribers requires callback only.

client.listAccounts().then(accounts => ...)

Initializes the client with API token and account ID, then lists campaigns using a promise.

const drip = require('drip-nodejs'); const client = drip({ token: process.env.DRIP_API_TOKEN ?? '', accountId: process.env.DRIP_ACCOUNT_ID ?? '' }); async function main() { try { const campaigns = await client.listCampaigns(); console.log('Campaigns:', campaigns); } catch (err) { console.error('Error:', err); } } main();
Debug
Known footguns
breakingBatch endpoint payloads changed from nested to flat arrays in v3.0.0.
gotchaThe `updateBatchSubscribers` method only supports callbacks, not promises.
gotchaWhen using OAuth2, you must specify tokenType: 'Bearer' or similar.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
16 hits · last 30 days
gptbot
3
bytedance
2
ahrefsbot
1
Resources