Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

campaignmonitor

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

campaignmonitor

Wrapper for campaign monitor api

  • 1.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

Campaign Monitor API wrapper

CircleCI codecov Greenkeeper badge

Universal javascript wrapper for campaign monitor api

Supported platforms

Compatible with node, webpack, and browserify

Getting Started

$ npm i --save campaignmonitor
import campaignMonitor from 'campaignmonitor'

You must initialize the object with options before using.

import campaignMonitor from 'campaignmonitor'

const api = campaignMonitor(options)

Options

apiKey

API key used for campaign monitor authentication - campaign monitor docs

API

Subscribers

Uses Campaign Monitor subscribers API

addSubscriber

Adds subscriber to specified list

Params

  • {string} - list ID - API Subscriber List ID from Campaign Monitor

  • {object} - request body - should map to fields in subscriber api docs

Returns

  • Email address of user that was subscribed (see CM docs for more)

Development

Running tests

To run the full suite, run

npm test

Other commands

npm start

Runs build, test, and lint watchers

npm run tdd

Run test watcher

npm run lint

Run linter

npm run build

Builds the production assets suitable for release

npm run release

Builds, git tags release, and publishes to npm

CI/CD

Releases

Every commit to master defaults to a patch bump. If it needs to be a minor or major, ENSURE YOU DO THE FOLLOWING:

If you would like to create a release, add the following to the merge commit message when you merge a PR:

release v+<bump type>

Where <bump type> is one of:

  • major
  • minor
  • patch (default)

This will:

  1. Bump version in package.json and commit back to master
  2. Git tag that newly created commit with the new version
  3. Publish to npm

Keywords

FAQs

Package last updated on 03 Jul 2017

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