Yet another Mailup Python client
Project description
mailupy
💌 Yet another MailUp Python client
Contributing
Any help is welcome, as long as you don't break the continuous integration. Fork the repository and open a Pull Request directly on the master branch. A maintainer will review and integrate your changes.
Maintainers:
Contributors:
Install
pip install mailupy
How to use
Import Mailupy and instantiate the client
from mailupy import Mailupy
client = Mailupy(
'm00000',
'm@1lUPf4k3',
'8123dbff-d12c-4e3d-a55e-23a8c5a303f8',
'16cadddf-a145-45db-9347-a5ab51ac223d'
)
Examples
Getting information about fields, groups...
for field in client.get_fields():
print (field)
for group in client.get_groups_from_list(1):
print (group)
Getting recipients from lists using Ordering and Filtering (Mailup Documentation)
for group in client.get_groups_from_list(
1, filter_by='Name.Contains(\'Farm\')',
order_by=['Name asc', 'idGroup desc']):
print (group)
for recipient in client.get_subscribed_recipients_from_list(
1, filter_by='Email.Contains(\'zzz\')',
order_by=['Email desc']):
print (recipient['Email'])
Getting a subscribed recipient from a list
client.get_subscribed_recipient_from_list(1, 'andrea.stagi@lotrek.it')
Subscribe/Unsubscribe recipient to/from lists
recipient_id = client.subscribe_to_list(
1, 'Andrea Stagi', 'stagi.andrea@gmail.com', pending=False
)
client.unsubscribe_from_list(1, recipient_id)
Run tests
pip install -r requirements-dev.txt
make test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mailupy-1.1.3.tar.gz
.
File metadata
- Download URL: mailupy-1.1.3.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95c3ae3e84e7216088940d44a61508adeeefc84ca380ec15dd5af23d7374601 |
|
MD5 | 19df044a0613cc8eb770c17d95935f30 |
|
BLAKE2b-256 | 98ceb37e10522a08f346d52ea0301d7eeacc024974a8dd00d6581c92a70fc02e |
File details
Details for the file mailupy-1.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: mailupy-1.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288de9e0962081a5b2edc854cc64a2720f53edb47d491acaf05f0fb7ce3efb3f |
|
MD5 | 9979396ba8057ba11dd375d8483071e0 |
|
BLAKE2b-256 | aa33cbf39dd73c5c20837ff8696d8f67153d63d02053a7d563d6134d56892d41 |