golearn

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

README ΒΆ

πŸŽ“ Go Learn

This is a simple webscraper to access the api of the intranet at DTU. The intranet is using the Desire2Learn API so every possible endpoint is available at their website.

⚠️ As a student you dont have permission to use all endpoints.

You can use this api for automation of tasks related to your user, and if you get extra permissions from the administration you will be able to manage other users as well.

Right now the webscraper is implemented as a library but later it might also get a TUI

πŸ› οΈ Todo

  • Finish implementing the endpoints from python
  • Make tests on endpoints
  • Automize implementaion of endpoints from the reference
  • Parse and return types from the functions.
  • Make a TUI for simple use cases
  • Make tests of all endpoints and register which are not available for students

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

This section is empty.

Variables ΒΆ

This section is empty.

Functions ΒΆ

This section is empty.

Types ΒΆ

type Learn ΒΆ

type Learn struct {
	// contains filtered or unexported fields
}

func New ΒΆ

func New(username, password string) (*Learn, error)

func (*Learn) GetEnrollments ΒΆ

func (d2l *Learn) GetEnrollments() ([]byte, error)

func (*Learn) GetForums ΒΆ

func (d2l *Learn) GetForums(courseId int) ([]byte, error)

func (*Learn) GetNews ΒΆ

func (d2l *Learn) GetNews(courseId int) ([]byte, error)

func (*Learn) GetOrg ΒΆ

func (d2l *Learn) GetOrg() ([]byte, error)

func (*Learn) GetSchema ΒΆ

func (d2l *Learn) GetSchema() ([]byte, error)

func (*Learn) Version ΒΆ

func (d2l *Learn) Version() ([]byte, error)

func (*Learn) Whoami ΒΆ

func (d2l *Learn) Whoami() ([]byte, error)

Directories ΒΆ

Path Synopsis
examples
internal

Jump to

Keyboard shortcuts

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