DXAssessmentClient
This class is responsible for making requests to the the assessment API. An assessment is a series of questions or tasks that a student must complete to finish a course.
You will need to enable the "Training" scope for your app in the developer dashboard before using the assessment API.
Properties
Singleton instance of DXAssessmentClient
. You will access all the available DXAssessmentClient
methods through this instance.
Methods
getAssessment
Retrieves a single assessment by ID to be displayed to a user.
Parameter | Type | Description |
assessmentId |
| The ID of the requested assessment. This can be found when reading an assessment lesson. Corresponds to the |
completion |
| The closure invoked when the request finishes. Called with an |
updateStudentAssessmentAnswers
Updates a student's answer for an assessment question. Returns the student's progress including their answers. Note that all questions in the assessment will be returned. Questions that the student has answered will have an "answer" field, questions that the student hasn't answered will have null for the "answer" and "correct" fields.
Parameter | Type | Description |
correct |
| Whether or not the student's answer is correct. |
answer |
| Student's answer. |
questionIndex |
| Integer index of the question in the assessment. This should match the index of the question returned in the assessment's array above. |
classId |
| Assessments are graded on a class-by-class basis. Indicate which class you are reporting student answers on with this ID. |
lessonId |
| ID of the assessment lesson. |
studentId |
| Student who is being assessed. If omitted, defaults to the currently authenticated user. |
completion |
| The closure invoked when the request finishes. Called with an |
Last updated