New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

activecampaign

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

activecampaign

Node.js wrapper for the ActiveCampaign API

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

ActiveCampaign Node.js API wrapper

Official Node.js wrapper for the ActiveCampaign API.

Installation

Install using NPM:

npm install activecampaign

If you don't use NPM, try this:

git clone git://github.com/ActiveCampaign/activecampaign-api-nodejs.git activecampaign

Requirements

  1. Valid ActiveCampaign hosted account.

Example Usage

var ActiveCampaign = require("activecampaign");

var ac = new ActiveCampaign("https://ACCOUNT.api-us1.com", {{KEY}});

// TEST API credentials
ac.credentials_test().then(function(result) {
	// successful request
	if (result.success) {
		// VALID ACCOUNT
	} else {
		// INVALID ACCOUNT
	}
}, function(result) {
	// request error
});

// GET requests

var account_view = ac.api("account/view", {});
account_view.then(function(result) {
	// successful request
	console.log(result);
}, function(result) {
	// request error
});

var contact_exists = ac.api("contact/view?email=test@example.com", {});
contact_exists.then(function(result) {
	// successful request
	console.log(result);
}, function(result) {
	// request error
});

// POST request

var list = {
	name: "List 3",
	sender_name: "My Company",
	sender_addr1: "123 S. Street",
	sender_city: "Chicago",
	sender_zip: "60601",
	sender_country: "USA"
};

var list_add = ac.api("list/add", list);
list_add.then(function(result) {
	// successful request
	console.log(result);
}, function(result) {
	// request error
});

Full Documentation

View our full API documentation.

Reporting Issues

We'd love to help if you have questions or problems. Report issues using the Github Issue Tracker or email help@activecampaign.com.

Keywords

FAQs

Package last updated on 12 Aug 2015

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