Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

Steveplays28/afas-email-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Languages