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');
client.all(function (err, obj) {
console.dir(obj);
});
client.one('1', function (err, obj) {
console.dir(obj);
});
client.search('kitty@catworld.com', function (err, obj) {
console.dir(obj);
});
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