This Flask application receives POST requests from a Chrome extension, which contain the name of a tag and a list of constituent IDs. It retrieves the email addresses and email consent for these IDs, then applies the specified tag to them using the Drip email manager.
- Receives POST requests containing tag information and constituent IDs.
- Retrieves email addresses and consent status from the NXT API.
- Applies tags to the retrieved email addresses using the Drip API.
- Sends confirmation emails upon successful tag application.
- Python 3.10 or lower (to use ratelimiter)
-
Clone the repository.
-
Set your environment variables based on template.env.
-
Build the Docker image:
docker build -t renxt_integration_be .
-
Run the Docker container:
docker run --env-file .env renxt_integration_be
The application will be available at http://127.0.0.1:5000/
.
The application will be available at http://127.0.0.1:5000/
.
Returns a message prompting the user to make a POST request to use the program.
Processes a POST request containing tag and constituent IDs data.
{
'batch': 'Batch #GFT-2024-513',
'email': 'email@gaddress.com',
'tag': 'Test',
'tag_state': False,
'names': [['132207', 'Sam Walters'], ['132208', 'Michael Power'], ['132209', 'Roger Jacobs']]
}
- An email notification with logs is sent to the admin.
- An error message is returned to the Chrome extension.
This project is licensed under the MIT License. See the LICENSE
file for more details.
For any questions or issues, please contact andrew@glacier.org.