-
Notifications
You must be signed in to change notification settings - Fork 1
DirectMail plugin
ParelPracht has an additional DirectMail plugin, mostly used within GEWIS. The goal is to fetch the number of email addresses in certain mail lists in Mailman, so the price of this product can be adapted accordingly. However, all this data is in Mailman and not in ParelPracht. To fetch this data, ParelPracht needs a separate endpoint that simply returns the neccesary information as an array of JSON objects. This is done to keep the Mailman database secure and to not perform any weird SQL queries. Authentication is done via a simple BasicAuth username and password. This is necessary by the way.
ParelPracht refreshes this information every night at 4:30. This JSON object is then parsed into a Product Pricing table, which will then be put in the database for the given product ID (see the page about Environment variables about this).
Each object in the array of the DirectMail endpoint needs the following properties:
-
description
: The name of the mailing list. -
eMail
: The email address of the mailing list. -
noMembers
: The number of people in this mailing list.