package
0.0.0-20210905195015-6de9b76e2b3c
Repository: https://github.com/theovidal/parcolar.git
Documentation: pkg.go.dev
# Functions
GetContents fetches lesson contents for the past 5 days.
GetHomework fetches the homework to do for the next 15 days.
GetTimetable fetches the timetable for the next 7 days.
Login uses user's credentials to get an API token.
MakeRequest executes a GraphQL query to the Pronote API.
ParseGraphQL transforms a full-text GraphQL query into a json query containing it.
# Variables
Subjects holds the list of all available subjects in Pronote.
# Structs
Content stores the content of a passed lesson.
ContentPart stores the different parts of a lesson.
Data stores possible data from the Pronote API.
File stores a document attached to homework or contents.
Homework defines the homework given for the next days by a teacher.
Lesson represents a class during a day on a specific subject.
Response holds the data from Pronote.
Subject defines the pretty-print style of a school subject.
# Type aliases
Contents is a shortcut for []Content.