This Python script helps users make reservations using the Affluences API for their preferred libraries and resources.
- Python 3.x
- Affluences API key
- Libraries:
logging
,requests
,random
,json
,time
,datetime
,sys
,Enum
Clone the repository:
git clone [email protected]:BIRSAx2/affluences_reservations.git
- Acquire an API key from Affluences.
- Set up the configuration details in the script:
- Library Details: Identify the specific library IDs.
- Resource Preferences: Set your preferred resources for each library.
- User Information: Add your personal details like email.
Run the script using Python:
python affluences_reservation.py
The script will orchestrate the reservation process and make reservations based on the preferences specified in the script.
- Reservations by Preferences: Reserves resources based on user-defined preferences.
- Flexible Time Slots: Options to generate different time slot preferences like full-day or half-day reservations.
- Logging and Error Handling: Detailed logs are maintained, and error handling is implemented.
- Fork the repository.
- Create a new branch.
- Make your contributions.
- Commit and push your changes.
- Create a pull request for review.
This project is licensed under the MIT License.