A simple Go package for the Smartschool API.
I always wanted to do stuff with Smartschool, like pairing it with Home Assistant so it can read aloud my new messages.
Simply run
go add github.com/alessiodam/gosmartschool
and start using it!
for this, I'll use examples/auth_check
- Make a .env file with the following:
DOMAIN=school.smartschool.be
UNIQUEUSC=your unique usc
PHPSESSID=your phpsessid cookies' value
PID=your pid cookies' value
# optional
WRITE_API_LOGS=true # will save API logs to ./requests/{timestamp}
- Run
go run ./examples/auth_check/
- You should get a message "Authenticated!" if your .env is correct.