app4

package
v0.0.0-...-33a7bac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCredentials = errors.New("app4: invalid credentials")

ErrInvalidCredentials is the error that is returned by Login if invalid credentials are provided.

Functions

This section is empty.

Types

type Session

type Session struct {
	*http.Client
}

Session represents a logged in user's session.

func Login

func Login(username string, password string) (Session, error)

Login logs in to the app4 endpoint with the given username and password. If unsucessful a non-nil error will be returned.

func (Session) GetClassNames

func (s Session) GetClassNames() ([]string, error)

GetClassNames returns the raw names on the logged in user's timetable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL