rapidmail-api is a Python library for dealing with the Rapidmail Newsletter Tool API.
Disclaimer:
This project is in no way affiliated with Rapidmail despite myself being a user of the tool.
This is still work in progress and far from being completed
rapidmail-api expects an .env file with two variables, and uses dotenv to read the file:
- RAPIDMAIL_USERNAME -> the Rapidmail API username
- RAPIDMAIL_PASSWORD -> the Rapidmail API password
- FILE_PATH -> the path to save generated files
You need to sign-up for Rapidmail and generate an API username and password to access the API. Website: https://www.rapidmail.de/
import rapidmail as rm
# test connection
print(rm.APIBasic())
# list API users
users=rm.APIBasic()
print(users.list_api_users())
# returns infos on all recipientlists
print(rm.Recipientlists())
# generates and saves a file with alle recipients from a specific list
rm.save_recipients_stats(filename -> STR, list_id -> INT)
The Rapidmail API documentation can be found on their developers website: https://developer.rapidmail.wiki
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.