Python tool that connects Afas with an email server, written for an internship in June 2022.
Requirements:
git clone https://github.com/Steveplays28/afas-email-connector.git
cd afas-email-connector
pip install python-dotenv
pip install requests
python src/afas_email_connector.py
A VSCode run configuration is also included.
Create a secrets.env
file in src/
with the following content:
# Email account credentials
USERNAME = "address@domain"
PASSWORD = "password"
AFAS_UPDATECONNECTOR_API_TOKEN = "<token><version>N</version><data>TOKEN</data></token>"
Email server is currently hardcoded to be outlook.office365.com
(Outlook).
Some important info about the Afas environment that helped me make this.
debiteurnummer
=999999
dossier item type
=21
This project is licensed under the MIT license, see LICENSE.