https://github.com/bennylope/activecampaign
Python client for the ActiveCampaign API
https://github.com/bennylope/activecampaign
activecampaign api-client marketing-automation python
Last synced: 2 months ago
JSON representation
Python client for the ActiveCampaign API
- Host: GitHub
- URL: https://github.com/bennylope/activecampaign
- Owner: bennylope
- License: bsd-3-clause
- Created: 2016-02-22T20:41:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T20:55:09.000Z (over 2 years ago)
- Last Synced: 2025-04-14T08:06:06.911Z (2 months ago)
- Topics: activecampaign, api-client, marketing-automation, python
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
=================
ActiveCampaign.py
=================Simple and Pythonic ActiveCampaign API client
* Free software: BSD license
Features
--------* View & sync a contact
* Add a contact tag
* Remove a contact tagBasic 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'])