Python tool that allows you to take multiple full page screenshots of web pages without ads.
Project description
Listmonk API
Version: 0.0.1
Listmonk API Python Wrapper
This repository is actively maintained and will continue adding more API calls
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()}")
Install Instructions
Install Python Package
python -m pip install listmonk-api
Build Instructions
Build Python Package
sudo chmod +x ./*.py
pip install .
python setup.py bdist_wheel --universal
# Test Pypi
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose -u "Username" -p "Password"
# Prod Pypi
twine upload dist/* --verbose -u "Username" -p "Password"
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
Close
Hashes for listmonk_api-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5545c88a26844988a5a1482c4982dbf75a7a5abfcd1041ef3132dbb45e1965db |
|
MD5 | 4ae8d3bae37993efeba3832f2334aa32 |
|
BLAKE2b-256 | ac4fd4b0b53fcbb528111f24e7b2610ee8513743993a9e03b88e702eac277b8c |