Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventDateStart = "DTSTART" EventDescription = "DESCRIPTION" EventSummary = "SUMMARY" )
View Source
const ( LoginURL = "https://ocjene.skole.hr/login" ClassURL = "https://ocjene.skole.hr/class" ClassActionURL = "https://ocjene.skole.hr/class_action/%v/course" GradeAllURL = "https://ocjene.skole.hr/grade/all" CalendarURL = "https://ocjene.skole.hr/exam/ical" Timeout = 60 * time.Second // site can get really slow sometimes )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client structure holds all HTTP Client related fields.
func NewClientWithContext ¶
NewClientWithContext creates new *Client, initializing HTTP Cookie Jar, context and username with password.
func (*Client) CloseConnections ¶ added in v0.9.0
func (c *Client) CloseConnections()
CloseConnections closes all connections on its transport.
func (*Client) GetClassEvents ¶ added in v0.9.0
GetClassEvents attempts to fetch all subjects and their grades, as well as all calendar events for exams in ICS format, returning raw grades listing body, parsed exam events and optional error.
func (*Client) GetClasses ¶ added in v0.9.0
GetClasses attempts to fetch all courses where a student has been previously enlisted or still is (multiple active classes possible).
Click to show internal directories.
Click to hide internal directories.