
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
node-iterable-api
Advanced tools
Credit: seanmcgary/iterable
npm install node-iterable-api
const client = require('node-iterable-api').create('<iterable api key>')
return client.lists.get()
.then(res => {
console.log(res.lists)
})
.catch(err => {
console.log(err)
})
All resources are taken from those available in the Iterable API documentation.
Note: Not all resources are implemented yet. You can see which ones in lib/api.js
.
Resources are addressable by calling:
// If param is a string, it'll append it to the resource path
// Otherwise you can just past an object that will either be
// passed to the body on a POST/PUT request, or as query
// string params in the case of a GET request
iterableInstance[<resource name>][<resource action>](param[, payload])
// e.g. to get lists:
iterableInstace.lists.get()
.then(data => {
// data response
})
// e.g. bulk update users
iterableInstace.users.bulkUpdate({
users: [
{
email: 'foo@bar.com',
dataFields: {
// some data fields
},
userId: "someUserId"
}
]
})
Currently implemented resources are as follows:
lists
GET - /lists
POST - /lists
DELETE - /lists
GET - /lists/getUsers
POST - /lists/subscribe
POST - /lists/unsubscribe
events
GET - /events
POST - /events/track
POST - /events/trackBulk
POST - /events/trackInAppOpen
POST - /events/trackInAppClick
POST - /events/trackWebPushClick
POST - /events/trackPushOpen
users
GET - /users
DELETE - /users
POST - /users/update
POST - /users/updateEmail
POST - /users/bulkUpdate
POST - /users/registerDeviceToken
POST - /users/updateSubscriptions
POST - /users/bulkUpdateSubscriptions
GET - /users/getFields
GET - /users/getSentMessages
POST - /users/disableDevice
inApp
GET - /inApp/getMessages
push
POST - /push/target
campaigns
POST - /campaigns/create
channels
GET - /channels
commerce
POST - /commerce/trackPurchase
POST - /commerce/updateCart
email
GET - /email/viewInBrowser
POST - /email/target
workflows
POST - /workflows/triggerWorkflow
sms
POST - /sms/target
webPush
POST - /webPush/target
messageTypes
GET - /messageTypes
experiments
GET - /experiments/metrics
catalogs
GET - /catalogs
POST - /catalogs
DELETE - /catalogs
catalogs.fieldMappings
GET - /catalogs/{catalogName}/fieldMappings
PUT - /catalogs/{catalogName}/fieldMappings
catalogs.items
GET - /catalogs/{catalogName}/items
PUT - /catalogs/{catalogName}/items
POST - /catalogs/{catalogName}/items
PATCH - /catalogs/{catalogName}/items
DELETE - /catalogs/{catalogName}/items
subscriptions
PUT - /subscriptions
subscriptions.user
PATCH - /subscriptions/{subscriptionGroup}/{subscriptionGroupId}/user
DELETE - /subscriptions/{subscriptionGroup}/{subscriptionGroupId}/user
To run the full tests with coverage:
npm test
To run test driven development:
npm run tdd
To list the implemented resources:
node index.js
v1.2.0
FAQs
Wrapper for Iterable API
The npm package node-iterable-api receives a total of 1,523 weekly downloads. As such, node-iterable-api popularity was classified as popular.
We found that node-iterable-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.