active-campaign-v1

Wrapper for Active Campaign API v1

Usage no npm install needed!

<script type="module">
  import activeCampaignV1 from 'https://cdn.skypack.dev/active-campaign-v1';
</script>

README

active-campaign-v1

Wrapper for Active Campaign API v1

NPM

npm Downloads Commitizen friendly code style: prettier

This module contains API endpoints, which I needed when implementing my project. You can easily contribute to this module the endpoints you need and use them.

Installation

yarn add active-campaign-v1

or

npm install active-campaign-v1

Docks

See the documentation at

Example

Common JS

import { AC } from 'active-campaign-v1'

const ac = new AC('<account-name>', '<API-token>')

ac.contactAdd({
    email: 'test@mail.com',
    firstName: 'test'
  })

This code creates new contact with email test@mail.com and test name.

Avaliable methods

Account view

full support

endpoint method
account_view accountView

Contact

partially support

endpoint method
contact_add contactAdd
contact_sync contactSync
contact_view contactView

License

Licensed under the MIT License, Copyright © 2020-present George Lukyanov

See LICENSE for more information.