AnsweredAssumed Answered

Download submissons of assignments using API

Question asked by Gaojian Chen on Nov 18, 2016
Latest reply on Dec 12, 2016 by Garth Egbert

I use Canvas api to access the submissions information, what I am trying to do is to download the submission of student's assignments. I use this format:

/api/v1/courses/CourseId/assignments/AssignmentId/submissions

and get:

{"id":10300000001565999,"body":null,"url":null,"grade":"77","score":77.0,"submitted_at":null,"assignment_id":10300000000046025,"user_id":10300000000020089,"submission_type":null,"workflow_state":"graded","grade_matches_current_submission":true,"graded_at":"2016-11-01T19:19:33Z","grader_id":10300000000024871,"attempt":null,"excused":false,"late":false,"preview_url":"https://canvas.instructure.com/courses/1030~133/assignments/1030~46025/submissions/20089?preview=1\u0026version=1"}

 

This can find individual submission but not include download url. I want to know how to get the exact download url because when I grab url from web and use it in other place, it redirects me to the login page.

 

Thank you! 

Outcomes