Socket
Socket
Sign inDemoInstall

cc-client

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cc-client

A node.js client for the Constant Contact API


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
288 kB
Created
Weekly downloads
 

Readme

Source

cc-client

Node.js wrapper for the Constant Contact API

Installation

npm install cc-client

Basic Use

var client = require('cc-client')('APIKEY', 'USERNAME', 'PASSWORD');

// Get all contacts
client.all(function (err, obj) {
    console.dir(obj);
});

// Get one contact by id
client.one('1', function (err, obj) {
    console.dir(obj);
});

// Search for a contact by email address
client.search('kitty@catworld.com', function (err, obj) {
    console.dir(obj);
});

// Create a new contact with the source type of "ACTION_BY_CUSTOMER" and add it to list 1
client.create('nyan@cat.com', 'ACTION_BY_CUSTOMER', 1, function (err, obj) {
    console.dir(obj);
});

To Test

node test/index.js --apikey APIKEY --user USERNAME --pass PASSWORD

FAQs

Last updated on 24 Sep 2012

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc