New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

getdrip-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getdrip-api

Node JS wrapper for Drip v2 API

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by60%
Maintainers
1
Weekly downloads
 
Created
Source

getdrip-api

A nodejs wrapper for drip v2 api.

Usage
var getdrip = require('getdripapi')(apiToken, accountId);

Supported APIs

Accounts

.getAccounts

returns a list of accounts

Usage
getdrip.getAccounts(function(err, res, body){
   // body contains account list
}

Subscribers

.getSubscribers

returns list of subscribers

Usage
getdrip.getSubscribers = function (cb) {
    // returns list of subscribers
}

.getSubscriber

returns a single subscriber

Usage
getdrip.getSubscriber = function (subscriberId, function(err, res, body) {
    // returns list of one subscriber
})

.createSubscriber

returns a subscriber

Usage
getdrip.createSubscriber(testEmail, {}, function(err, res, body) {
    // returns list of the new subscriber
})

Campaigns

.getCampaigns

returns list of campgains

Usage
getdrip.getCampaigns = function (cb) {
    // returns list of subscribers
}

.subscribeToCampaign

adds a subscriber to a campaign

Usage
getdrip.subscribeToCampaign(email, campaignId, {}, function(err, res, body) {
    // returns list of subscribers added to the campaign
}

Events

.createEvent

creates an event for a given subscriber

Usage
getdrip.createEvent = function (email, event, opts, function(err, res, body) {
    // no body
}

Tags

.createTag

creates a tag for a given subscriber

Usage
getdrip.createEvent = function (email, tag, opts, function(err, res, body) {
    // no body
}

License

MIT

Keywords

FAQs

Package last updated on 30 Aug 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc