Observees' Grades
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017
02:29 AM
How can I view observee's grades through the API? Please advise.
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017
01:12 PM
First, you would need to extract the Canvas IDs the observer is observing. A PowerShell snippet would look something like:
$ids = Invoke-RestMethod "https://school.instructure.com/api/v1/users/:canvas_id_of_observer/observees" -method get -headers @{"Authorization"="Bearer $auth"} | % {$_.id}
Foreach ($i in $ids) {
invoke-restmethod "https://school.instructure.com/api/v1/users/$i/enrollments" -method get -headers @{"Authorization"="Bearer $auth"} | % { $_.grades }
}