# ActiveCampaign

[![Module Version](](
[![Hex Docs](](
[![Last Updated](](

A thin wrapper around the Active Campaign [version 3 API](

## Installation

First, add the ActiveCampaign package to your `mix.exs` dependencies:

def deps do
    {:active_campaign, "~> 0.2"}

and run `$ mix deps.get`

## Usage

Put your API key and API URL in your `config.exs` file:

config :active_campaign,
  api_key: "myApiKey",
  api_url: ""

## JSON support

ActiveCampaign comes with JSON support out of the box via the [Jason]( library. To use it, add `:jason` to your dependencies:

{:jason, "~> 1.0"}

You can customize it to use another library via the `:json_library` configuration:

config :active_campaign, :json_library, SomeOtherLib

Once you change the value, you have to recompile ActiveCampaign, which can be done by cleaning its current build:

mix deps.clean active_campaign --build