uw_canvas/enrollments.py
def get_enrollments_for_section(self, section_id, params={}):
        """
        Return a list of all enrollments for the passed section_id.

        https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.index
        """
        url = SECTIONS_API.format(section_id) + "/enrollments"

        enrollments = []
        for datum in self._get_paged_resource(url, params=params):
            enrollments.append(CanvasEnrollment(data=datum))

        return enrollments
def get_enrollments_for_section(self, section_id, params={}):
        url = SECTIONS_API.format(section_id) + "/enrollments"

        enrollments = []
        for datum in self._get_paged_resource(url, params=params):
            enrollments.append(CanvasEnrollment(data=datum))

        return enrollments
def get_enrollments_for_section ( self , section_id , params = { } ) : url = SECTIONS_API . format ( section_id ) + "/enrollments" enrollments = [ ] for datum in self . _get_paged_resource ( url , params = params ) : enrollments . append ( CanvasEnrollment ( data = datum ) ) return enrollments
Return a list of all enrollments for the passed section_id.

        https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.index
Return a list of all enrollments for the passed section_id .