Magister
Class to communicate with Magister.
Member Summary
Public Members | ||
public |
http: Http |
|
public |
|
|
public |
|
|
public get |
|
Method Summary
Public Methods | ||
public |
activities(): Promise<Activity[]> |
|
public |
appointments(from: Date, to: Date, options: Object): Promise<Appointment[]> |
|
public |
assignments(options: Object): Promise<Assignment[]> |
|
public |
|
|
public |
|
|
public |
createAppointment(options: Object): Promise |
|
public |
fileFolders(parentId: Integer): Promise<FileFolder[]> |
|
public |
Logins to Magister. |
|
public |
|
|
public |
|
|
public |
|
Public Methods
public appointments(from: Date, to: Date, options: Object): Promise<Appointment[]> source
Params:
Name | Type | Attribute | Description |
from | Date | Time is ignored. |
|
to | Date |
|
Time is ignored |
options | Object |
|
|
options.fillPersons | boolean |
|
|
options.fetchAbsences | boolean |
|
|
options.ignoreAbsenceErrors | boolean |
|
public assignments(options: Object): Promise<Assignment[]> source
public createAppointment(options: Object): Promise source
Params:
Name | Type | Attribute | Description |
options | Object | ||
options.description | string | The description of the appointment. |
|
options.start | Date | The start of the appointment, time is
ignored when |
|
options.end | Date | The end of the appointment, this is ignored
when |
|
options.fullDay | boolean |
|
When this is true,
|
options.location | string |
|
The location (classroom for example) for the appointment. |
options.content | string |
|
Some arbitrary string you want to save. |
options.type | number |
|
The type of the appointment: 1 for personal or 16 for planning |
public fileFolders(parentId: Integer): Promise<FileFolder[]> source
Params:
Name | Type | Attribute | Description |
parentId | Integer |
|
public async login(forceLogin: boolean): Promise<string> source
Logins to Magister.
Params:
Name | Type | Attribute | Description |
forceLogin | boolean |
|
Force a login, even when a token is in the options object. |