AnsweredAssumed Answered

Accessing the current user's grades

Question asked by Nick Doherty on Dec 26, 2016
Latest reply on Mar 15, 2017 by Edward Edward

Hi fellow developers!

 

I'm new to the canvas platform, but excited to get started. I am awaiting a response from the admins about getting an API token, and in the meantime have been poking around in the console while logged in (I'm a student, so I am running these commands while signed into my student account where I have active classes).

 

I'm interested in getting the current student's grade on a particular assignment. I tried this command:

 

$.getJSON("/api/v1/courses/<course id>/assignments/<assignmend id>/submissions", function(data) { console.log(data); });

 

But I got a 401 unauthorized return status. Do I need to have an API token to run this, or am I missing something else? I can fetch my classes and assignments just fine through the console.

 

Thanks,

Nick

Outcomes