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('[email protected]', function (err, obj) {
console.dir(obj);
});
client.create('[email protected]', 'ACTION_BY_CUSTOMER', 1, function (err, obj) {
console.dir(obj);
});
To Test
node test/index.js --apikey APIKEY --user USERNAME --pass PASSWORD