Listmonk API Python Wrapper
Project description
Listmonk API
Version: 0.2.0
Listmonk API Python Wrapper
This repository is actively maintained - Contributions are welcome!
API Calls:
- Subscribers
- Lists
- Import
- Campaigns
- Media
- Templates
- Transactional
Usage:
#!/usr/bin/python
# coding: utf-8
import listmonk_api
username = "<LISTMONK USERNAME>"
password = "<LISTMONK_PASSWORD>"
listmonk_api_url = "<LISTMONK_URL>"
client = listmonk_api.Api(url=listmonk_api_url, username=username, password=password)
lists = client.get_lists()
print(f"Lists: {lists}")
created_list = client.create_list(name="EXAMPLE TEMPLATE", type="<public/private>", optin="<single/double>", tags=['<LIST TAG>'])
print(f"Created List: {created_list}")
created_campaign = client.create_campaign(name="EXAMPLE TEMPLATE", type="<public/private>", optin="<single/double>", tags=['<LIST TAG>'])
print(f"Created Campaign: {created_campaign}")
print(f"Subscribers: {client.get_subscribers()}")
print(f"Campaigns: {client.get_campaigns()}")
Installation Instructions:
Install Python Package
python -m pip install listmonk-api
Repository Owners:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file listmonk_api-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: listmonk_api-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8234b349c8905bafba12c687a895ef455086a44aee53eb505a532859195225e |
|
MD5 | ade825db812ea6232c6ca52901ad228b |
|
BLAKE2b-256 | f2b344967b832b2af503a23431fff14da02d4bb6160792c46961ce842e53a1b7 |