activecampaign-0.2.0
توضیحات
ActiveCampaign API client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | activecampaign-0.2.0 |
| نام | activecampaign |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ben Lopatin |
| ایمیل نویسنده | ben@benlopatin.com |
| آدرس صفحه اصلی | https://github.com/bennylope/activecampaign |
| آدرس اینترنتی | https://pypi.org/project/activecampaign/ |
| مجوز | BSD |
=================
ActiveCampaign.py
=================
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
نحوه نصب
نصب پکیج whl activecampaign-0.2.0:
pip install activecampaign-0.2.0.whl
نصب پکیج tar.gz activecampaign-0.2.0:
pip install activecampaign-0.2.0.tar.gz