1.0.14 • Published 7 years ago

campaignmonitor v1.0.14

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
7 years ago

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
1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago