Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 737 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 737 Bytes

Go Smartschool API wrapper

A simple Go package for the Smartschool API.

Yes. But.. Why?

I always wanted to do stuff with Smartschool, like pairing it with Home Assistant so it can read aloud my new messages.

How to use

Simply run

go add github.com/alessiodam/gosmartschool

and start using it!

Examples

for this, I'll use examples/auth_check

  1. 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}
  1. Run go run ./examples/auth_check/
  2. You should get a message "Authenticated!" if your .env is correct.