canvasapi
canvasapi copied to clipboard
Download submission annotations and comments
What resource needs additional coverage? e.g. Courses, Users, Accounts, Quizzes Submission annotations and comments What endpoints need to be covered? Specify individual endpoints and provide a link to the endpoint in Canvas's API documentation I am not sure if this endpoint exists, but I was wondering if it was possible to get the submission annotations (Which are downloadable when you click view feedback) and the comments.
There isn't a specific endpoint for comments, but you can request the comments with a keyword argument.
Using Assignment.get_submission(include=submission_comments), you'll get the Submission object will include comment objects in a list.
// Associated comments for a submission (optional)
"submission_comments": null,
{
"id": 37,
"author_id": 134,
"author_name": "Toph Beifong",
// Abbreviated user object UserDisplay (see users API).
"author": "{}",
"comment": "Well here's the thing...",
"created_at": "2012-01-01T01:00:00Z",
"edited_at": "2012-01-02T01:00:00Z",
"media_comment": null
}