Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc