webuntis_headless
v1.0.0
Published
WebUntis Headless API
Downloads
5
Maintainers
Readme
WebUntis NodeJS API Wrapper
Welcome to the WebUntis API Wrapper! This Node.js TypeScript library allows you to seamlessly integrate WebUntis into your projects
Installation
npm install webuntis_headless
Getting Started
- Install the
webuntis_headless
library in your project. - Start using the WebUntis Headless API in your Node.js TypeScript application!
import { SetSchool, SetBaseUrl, SetUser, SetPassword } from "webuntis_headless";
SetSchool("yourschoolname")
SetBaseUrl("yourbaseurl") // e.g. borys.webuntis.com
SetUser("yourusername")
SetPassword("yourpassword")
Functions
// Get the current session or request a new one (With session validation)
async GetSession()
// Logout the current session
async Logout()
// Generate a new JWT Token from the session
async GetJwtToken()
// Get a timetable of a date range
async GetTimeTable(startDate?: Date, endDate?: Date)
// Fetch lesson details
async FetchCalendarEntryDetails(lesson: Lesson)
Contributing
We welcome contributions from the community! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and ensure tests pass.
- Submit a pull request with a clear description of your changes.
Documentation
WebUntis does not provide a offical documentation. For JSON RPC usage see this PDF file.
Support
If you have questions or need assistance, feel free to open an issue on the GitHub repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding! 🚀