-
Notifications
You must be signed in to change notification settings - Fork 0
Client
Represents a SMHW client.
.access (Access)
Authorisation information for the client to make authorised requests.
.student (Student)
The student user that the client represents.
.user (User)
The user that the client represents.
Stop the client pulsing heartbeat, if available. Returns nothing.
-
school_id(Number) The ID of the school to log into. -
username(String) The username of the user to log into. -
password(String) The password of the user to log into. (not permanently stored)
Get an authorisation token to make authorised requests, get private user data and get school information.
Returns Promise<true>
Get a list of tasks todo. Returns Promise<Array<Task>>
-
id(Number) ID of the homework to retrieve.
Get a homework by ID. Returns Promise<Homework>
-
id(Number) ID of the quiz to retrieve.
Get a quiz by ID. Returns Promise<Quiz>
-
id(Number) ID of the flexible task to retrieve.
Get a flexible task by ID. Returns Promise<FlexibleTask>
-
id(Number) ID of the spelling test to retrieve.
Get a spelling test by ID. Returns Promise<SpellingTest>
-
id(Number) ID of the homework submission to retrieve.
Get a homework submission by ID. Returns Promise<HomeworkSubmission>
-
id(Number) ID of the quiz submission to retrieve.
Get a quiz submission by ID. Returns Promise<QuizSubmission>
-
id(Number) ID of the flexible task submission to retrieve.
Get a flexible task submission by ID. Returns Promise<FlexibleTaskSubmission>
-
id(Number) ID of the spelling test submission to retrieve.
Get a spelling test submission by ID. Returns Promise<SpellingTestSubmission>
-
id(Number) ID of the teacher to retrieve.
Get a teacher by ID. Returns Promise<Teacher>
Get a list of submission methods. Returns Promise<Array<SubmissionMethod>>
-
term(String) The term to search. -
options(Object) The options to include for the search.-
limit(Number)
-
Search schools on SMHW. Returns Promise<Array<Schoolincomplete>>