This repository was archived by the owner on Jul 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Client
Edward Smale edited this page Apr 7, 2020
·
8 revisions
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 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>
Get a list of submission methods. Returns Promise<Array<SubmissionMethod>>
-
term(String) The term to search. -
limit(Number) The limit of schools to return. Search schools on SMHW. Returns Promise<Array<Schoolincomplete>>