Submission¶
-
class
canvasapi.submission.
Submission
(requester, attributes)¶ Parameters: - requester (
canvasapi.requester.Requester
) – The requester to pass HTTP requests through. - attributes (dict) – The JSON object to build this object with.
-
upload_comment
(file, **kwargs)¶ Upload a file to attach to this submission comment.
Calls: POST /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/comments/files Parameters: file (file or str) – The file or path of the file to upload. Returns: True if the file uploaded successfully, False otherwise, and the JSON response from the API. Return type: tuple
- requester (