You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cc-client

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

cc-client

A node.js client for the Constant Contact API

0.1.0
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 24 Sep 2012

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