Skip to main content

Simple and Pythonic ActiveCampaign API client

  • Free software: BSD license

Features

  • View & sync a contact

  • Add a contact tag

  • Remove a contact tag

Basic usage

Initialize the client with your custom ActiveCampaign host name and API key:

from activecampaign.client import ActiveCampaignClient
client = ActiveCampaignClient(ACTIVECAMPAIGN_HOST, ACTIVECAMPAIGN_KEY)

Sync contact information:

client.contacts.sync(
    email=customer_data['email'],
    first_name=customer_data['first_name'],
    last_name=customer_data['last_name'],
    orgname=custmoer_data['orgname'],
    phone=customer_data['phone'],
)

Add and remove tags:

client.contacts.tag_add("new-tag", email=customer_data['email'])
client.contacts.tag_remove("old-tag", email=customer_data['email'])

History

0.2.0 (2019-07-09)

  • Dropped support for Python 2.7

0.1.0 (2016-02-22)

  • First release on PyPI.

Release files for activecampaign 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for activecampaign 0.2.0
File Size Uploaded
activecampaign-0.2.0.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for activecampaign 0.2.0
File Interpreter ABI Platform
activecampaign-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 18.0 kB

Release files / activecampaign-0.2.0.tar.gz

Download URL activecampaign-0.2.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ae0032ad603df6de19e599932ae0b7eb8309de23a7313cf05c0e25bf39d9e215
BLAKE2b-256 checksum
How to use checksums
1aa9ff045e84b2c5a518f4939b0a04a0e04ce1751dd21db13342ba40edecdeba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / activecampaign-0.2.0-py2.py3-none-any.whl

Download URL activecampaign-0.2.0-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3fdd20219be1929625a28c2bac03b093e2e13eddfed76c6f9be51bf1984d56d4
BLAKE2b-256 checksum
How to use checksums
6820e35ff6008009a91c13feabe7ae9286fa48c63091fea25fcf8b4900c66302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page