Steveplays28 / afas-email-connector

Python tool that connects Afas with an email server, written for an internship in June 2022.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Afas email connector

Python tool that connects Afas with an email server, written for an internship in June 2022.

Development

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.

Environment variables

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).

Notes

Some important info about the Afas environment that helped me make this.

  • debiteurnummer = 999999
  • dossier item type = 21

License

This project is licensed under the MIT license, see LICENSE.

About

Python tool that connects Afas with an email server, written for an internship in June 2022.

License:MIT License


Languages

Language:Python 100.0%