Welcome to the EDT-UAPV token retrieval tool!
Before you start, ensure you have the following prerequisites installed on your system:
- Python 3.x
- pip (Python package installer)
First, you need to install the necessary Python libraries. Open your terminal and run the following command:
pip install -r requirements.txt
This command reads the requirements.txt
file and installs all the listed Python packages.
This tool requires a WebDriver for running automated tasks in a web browser. We use ChromeDriver as an example here, but you can use any WebDriver compatible with your browser.
- ChromeDriver: Visit the ChromeDriver download page and download the version that matches your Chrome browser version. Extract the downloaded file and ensure the
chromedriver
executable is in your system's PATH.
To use this tool, you need to send a POST request with your University of Avignon credentials. Below is an example using curl
:
curl -X 'POST' \
'http://127.0.0.1:5000/login' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"username": "uapvXXXXXXX",
"password": "YOUR_PASSWORD"
}'
Replace uapvXXXXXXX
with your actual username and YOUR_PASSWORD
with your password.
Upon successful authentication, the server will respond with a JSON object containing your name and token:
{
"name": "Aubertin Emmanuel",
"token": "YOUR_TOKEN_HERE",
"isStudent": "true",
}
Store this token securely, as it will be used for subsequent API requests to the University of Avignon's schedule systems. This can expire shortly, it is like an session token.
Ensure you keep your credentials secure and do not share your token with others.