Skip to main content

Listmonk API Python Wrapper

Project description

Listmonk API

PyPI - Version PyPI - Downloads GitHub Repo stars GitHub forks GitHub contributors PyPI - License GitHub

GitHub last commit (by committer) GitHub pull requests GitHub closed pull requests GitHub issues

GitHub top language GitHub language count GitHub repo size GitHub repo file count (file type) PyPI - Wheel PyPI - Implementation

Version: 0.3.1

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:

GitHub followers GitHub User's stars

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

listmonk_api-0.3.1-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file listmonk_api-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for listmonk_api-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f921f8ff9737244cb91eba89377745554653f3063e2ef634d36e6354959a6c87
MD5 7cb521b2f6e20e061e9275ca73f55d34
BLAKE2b-256 f72f77ff9aa755bce22687c3cc4e9bfb633f8340a268076d489351eda873a348

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page