Activity Feed
- Liked Re: CanvasAPI - json objects for JorgeRiveraAPL. 01-10-2023 01:31 PM
- Liked Re: Module API only returning first 10 modules? for gerosullivan. 07-20-2021 08:23 PM
- Liked Re: Module API only returning first 10 modules? for themidiman. 07-20-2021 08:22 PM
- Posted CanvasAPI - submitting rubric assessment grades & comments on Canvas Question Forum. 06-25-2021 10:15 AM
- Tagged CanvasAPI - submitting rubric assessment grades & comments on Canvas Question Forum. 06-25-2021 10:15 AM
- Tagged CanvasAPI - submitting rubric assessment grades & comments on Canvas Question Forum. 06-25-2021 10:15 AM
- Liked Re: CanvasAPI - json objects for James. 06-25-2021 09:44 AM
- Liked A Simple Python GET Script for kevinw. 06-18-2021 10:50 AM
- Posted CanvasAPI - json objects on Canvas Question Forum. 06-18-2021 08:50 AM
- Tagged CanvasAPI - json objects on Canvas Question Forum. 06-18-2021 08:50 AM
- Tagged CanvasAPI - json objects on Canvas Question Forum. 06-18-2021 08:50 AM
- Tagged CanvasAPI - json objects on Canvas Question Forum. 06-18-2021 08:50 AM
My Posts
Post Details | Date Published | Views | Likes |
---|---|---|---|
CanvasAPI - submitting rubric assessment grades & comments I'm developing some scripts in Python through CanvasAPI to automate grade submissions, comments, and attachments. I'd also like to automate submissions of rubric points and comments (here's the docum... |
06-25-2021 |
565 |
0 |
I'm new to Python and CanvasAPI, and I'm learning the ropes of calling information. I'm seeking to print off the json display of a get_submission request for a single assignment. Here's my code ... |
06-18-2021 |
864 |
0 |
06-25-2021
10:15 AM
I'm developing some scripts in Python through CanvasAPI to automate grade submissions, comments, and attachments. I'd also like to automate submissions of rubric points and comments (here's the documentation for rubric_assessment), but I'm running into difficulties. The script below runs without any errors, but nothing shows up in Speedgrader indicating grades or comments. I used this post to lookup the rubric criteria id's and plug them in accordingly. Here's the code:
canvas = Canvas(API_URL, API_KEY)
course = canvas.get_course(9997)
assignment = course.get_assignment(78290)
submission = assignment.get_submission(7494)
submission.edit(criterion={'id': '1296_6974'}, points={'points': '37'}, comments={'comments': 'Good work."})
I'm also experiencing difficulties achieving this directly through the Live API. It records a success, but no rubric grades are submitted. Any suggestions?
... View more
Labels
- Labels:
-
Canvas
06-18-2021
08:50 AM
I'm new to Python and CanvasAPI, and I'm learning the ropes of calling information. I'm seeking to print off the json display of a get_submission request for a single assignment. Here's my code thus far:
canvas = Canvas(API_URL, API_KEY)
test_course = canvas.get_course("course_id")
assignment = test_course.get_assignment("assignment_id")
submission = assignment.get_submission("user_id")
print(submission)
The output is just the "assignment_id"-"user_id" (eg. 12345-6789)
The output I'm looking for is the actual .json for get_submission, as displayed here. What am I missing? Many thanks for any assistance!
... View more