Skip to content

alessiodam/gosmartschool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Smartschool API wrapper package written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages