{"id":22401764,"url":"https://github.com/homezen/campaignmonitor-node","last_synced_at":"2025-08-08T05:13:36.794Z","repository":{"id":57193341,"uuid":"83586755","full_name":"homezen/campaignmonitor-node","owner":"homezen","description":"universal javascript wrapper for campaign monitor api","archived":false,"fork":false,"pushed_at":"2018-06-01T07:00:38.000Z","size":75,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-31T18:37:56.925Z","etag":null,"topics":["campaign-monitor","campaignmonitor","createsend","email-marketing","universal-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/homezen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-01T18:23:41.000Z","updated_at":"2021-09-06T06:05:10.000Z","dependencies_parsed_at":"2022-09-15T22:30:41.024Z","dependency_job_id":null,"html_url":"https://github.com/homezen/campaignmonitor-node","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/homezen/campaignmonitor-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homezen%2Fcampaignmonitor-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homezen%2Fcampaignmonitor-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homezen%2Fcampaignmonitor-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homezen%2Fcampaignmonitor-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homezen","download_url":"https://codeload.github.com/homezen/campaignmonitor-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homezen%2Fcampaignmonitor-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269366856,"owners_count":24405251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["campaign-monitor","campaignmonitor","createsend","email-marketing","universal-javascript"],"created_at":"2024-12-05T09:08:20.327Z","updated_at":"2025-08-08T05:13:36.750Z","avatar_url":"https://github.com/homezen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Campaign Monitor API wrapper\n\n[![CircleCI](https://circleci.com/gh/homezen/campaignmonitor-node.svg?style=shield)](https://circleci.com/gh/homezen/campaignmonitor-node)\n[![codecov](https://codecov.io/gh/homezen/campaignmonitor-node/branch/master/graph/badge.svg)](https://codecov.io/gh/homezen/campaignmonitor-node)\n[![Greenkeeper badge](https://badges.greenkeeper.io/homezen/campaignmonitor-node.svg)](https://greenkeeper.io/)\n\nUniversal javascript wrapper for campaign monitor api\n\n## Supported platforms\n\nCompatible with node, webpack, and browserify\n\n\n## Getting Started\n\n```bash\n$ npm i --save campaignmonitor\n```\n\n```js\nimport campaignMonitor from 'campaignmonitor'\n```\n\nYou must initialize the object with options before using.\n\n```js\nimport campaignMonitor from 'campaignmonitor'\n\nconst api = campaignMonitor(options)\n```\n\n## Options\n\n#### apiKey\n\nAPI key used for campaign monitor authentication - [campaign monitor\ndocs](docshttps://www.campaignmonitor.com/api/getting-started/#authenticating-api-key)\n\n\n## API\n\n### Subscribers\n\nUses [Campaign Monitor subscribers API](https://www.campaignmonitor.com/api/subscribers/)\n\n#### `addSubscriber`\n\nAdds subscriber to specified list\n\nParams\n\n- {string} - list ID - API Subscriber List ID from Campaign Monitor\n\n- {object} - request body - should map to fields in [subscriber api docs](https://www.campaignmonitor.com/api/subscribers/#adding-a-subscriber)\n\nReturns\n\n- Email address of user that was subscribed (see [CM\n  docs](https://www.campaignmonitor.com/api/subscribers/#adding-a-subscriber) for more)\n\n## Development\n\n### Running tests\n\nTo run the full suite, run\n\n```bash\nnpm test\n```\n\n### Other commands\n\n#### `npm start`\n\nRuns build, test, and lint watchers\n\n#### `npm run tdd`\n\nRun test watcher\n\n#### `npm run lint`\n\nRun linter\n\n#### `npm run build`\n\nBuilds the production assets suitable for release\n\n#### `npm run release`\n\nBuilds, git tags release, and publishes to npm\n\n\n## CI/CD\n\n### Releases\n\nEvery commit to master defaults to a patch bump.  If it needs to be a minor or major, ENSURE YOU DO\nTHE FOLLOWING:\n\nIf you would like to create a release, add the following to the merge commit message when you merge\na PR:\n\n```bash\nrelease v+\u003cbump type\u003e\n```\n\nWhere `\u003cbump type\u003e` is one of:\n\n*   major\n*   minor\n*   patch (default)\n\nThis will:\n\n1.  Bump version in package.json and commit back to master\n1.  Git tag that newly created commit with the new version\n1.  Publish to npm\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomezen%2Fcampaignmonitor-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomezen%2Fcampaignmonitor-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomezen%2Fcampaignmonitor-node/lists"}