I want to get a list of all assignments along with their completion status under all courses. Basically what is shown under the timeline in the dashboard.
The WS function core_course_get_enrolled_courses_by_timeline_classification
, gives me all the current courses the student is enrolled in when I use the parameter ?classification=inprogress
.
Using the course ids from the above function, I pass them as parameters to the function mod_assign_get_assignments
, but there's just one tiny problem, it doesn't give any information on whether that assignment has been marked as complete by the student (completion status).
The function core_course_get_contents
is a lot more than what I need since it provides every single module in that course and all activities under each module, moreover it gives all this only for one course at a time, however it does give the completion status for each activity.
Also, it would help me out a lot if you provide the required and optional query parameters since the API docs are quite terrible and doesn't provide any of that, I had to google each function which was very time consuming.