npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@meta-dev-zone/node-active-campaign

v0.4.0

Published

node package for active campaign api integration

Downloads

21

Readme

node-active-campaign package is a API wrapper for ActiveCampaign

node-active-campaign package is simple and easy to use for using the apis of ActiveCampaign

Current Status

node-active-campaign package is under development we will update time to time. Below in the table, You can check the function are available for different APIs implementation.

Installation

Install using NPM:

npm i @meta-dev-zone/node-active-campaign

If you don't use NPM, try this:

git clone git://github.com:metadevzone/node-active-campaign.git
node-active-campaign

Requirements

You have ActiveCampaign API Access with URL and Key

Available Functions

| Collection | Functions | | ----------- | ---------------------------------------------------- | | index | config, | | contact | createContact, deleteContact, addContactToList | | list | createList | | tag | createTag, createContactTags |

How to use Functions

You can use the functions by importing the package and calling the functions. Below is the example of how to use the functions.

Examples

You can find Test examples in node-active-campaign/src/test/index.js

//How to import package
const activeCampaign = require("@meta-dev-zone/node-active-campaign");

//set configuration

//During the configuration, you need to provide the API URL and API key. You can get the API URL and API key from your ActiveCampaign account. Here is an example of how to set the configuration:

await activeCampaign.config(
  "https://xxxxxxxxxxxxxxxxx.api-us1.com",
  "e43cdd65d06d299bcdf071e68d794c4a4692c2495b50674ebc91aab3c21ee225dc5f54de"
);

//*************************{contact functions}*************************//

//create contact
await activeCampaign.contact.createContact({
  email: "",
  firstName: "",
  lastName: "",
  phone: "",
});

//delete contact
await activeCampaign.contact.deleteContact(1);

//add contact to list
await activeCampaign.contact.addContactToList({
  contact: 1,
  list: 1,
  status: 1,
});

//*************************{tag functions}*************************//

//create tag
await activeCampaign.tag.createTag({
  tag: "",
  tagType: "",
  description: "",
});

//add tag to a contact

await activeCampaign.tag.createContactTag({
  contact: 1,
  tag: 1,
});

//*************************{list functions}*************************//

//create list

await activeCampaign.list.createList({
  name: "",
  stringid: "",
  sender_url: "",
  sender_reminder: "",
  user: "",
});

Link to the package

link to the package node-active-campaign

Author

Meta Dev Zone – meta-dev-zone

Dependencies

| Package | Version | Dev | | ------- | ------- | --- | | axios | ^1.6.8 | ✖ |

Support

There is an email you can discuss any Issue or Query [email protected]

Versioning

All versions are <major>.<minor>.<patch> which will be incremented for breaking backward compat and major reworks, new features without breaking change, and bug fixes, respectively Semantic versioning.