uw_canvas/submissions.py
def get_submissions_by_course_and_assignment(
            self, course_id, assignment_id, params={}):
        """
        https://canvas.instructure.com/doc/api/submissions.html#method.submissions_api.index
        """
        url = COURSES_API.format(course_id)
        url += "/assignments/{}/submissions".format(assignment_id)

        submissions = []
        for data in self._get_paged_resource(url, params=params):
            submissions.append(Submission(data=data))
        return submissions
def get_submissions_by_course_and_assignment(
            self, course_id, assignment_id, params={}):
        """
        https://canvas.instructure.com/doc/api/submissions.html#method.submissions_api.index
        """
        url = COURSES_API.format(course_id)
        url += "/assignments/{}/submissions".format(assignment_id)

        submissions = []
        for data in self._get_paged_resource(url, params=params):
            submissions.append(Submission(data=data))
        return submissions
def get_submissions_by_course_and_assignment ( self , course_id , assignment_id , params = { } ) : url = COURSES_API . format ( course_id ) url += "/assignments/{}/submissions" . format ( assignment_id ) submissions = [ ] for data in self . _get_paged_resource ( url , params = params ) : submissions . append ( Submission ( data = data ) ) return submissions
https://canvas.instructure.com/doc/api/submissions.html#method.submissions_api.index
https : // canvas . instructure . com / doc / api / submissions . html#method . submissions_api . index