If you didn't know, Canvas APIs are fantastic. To really leverage the API, you need to learn at least a little bit of coding so you can run a script that will ultimately help you to achieve something that would otherwise have taken an awful lot of arduous clicking around in Canvas.
So this is my first script. When it runs it makes three different GET calls to retrieve data about a particular assignment (you define which assignment - look at the code comments in green). The 3 calls are to (1) retrieve the comments left for a submission, (2) get a list of the teachers on the course, and (3) get a list of the students on the course. The script then uses the response data from these calls to work out which students received comments on their submission from more than one teacher. Our assessment regulations require 10% or more of the submissions to be treated this way, so the script ultimately outputs (1) how many students submitted, (2) how many received a comment from more than one teacher, (3) whether the 10% rule was met or not, and (4) the list of student SIS Ids who did receive this.
As you read through the code you'll spot other things going on to do with how the response data gets manipulated to achieve the end result. If you look at this and think 'this is terrifying nonsense and sod it I'm no coder so never mind, APIs aren't for me' - STOP. Don't worry - I went from that starting point to this script in about 3 weeks (and that was playing around outside of work time!). I can attribute my success here to this self-paced course built specifically for learning ruby (a coding language) with the Canvas APIs:
Getting Started with Ruby & the Canvas API . Go join it. Make awesome things. Just remember to give kudos to Jeremy for building that course for us all!
(P.S my original comment is still below the code)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.