uw_canvas/sections.py
def get_sections_in_course(self, course_id, params={}):
        """
        Return list of sections for the passed course ID.

        https://canvas.instructure.com/doc/api/sections.html#method.sections.index
        """
        url = COURSES_API.format(course_id) + "/sections"

        sections = []
        for data in self._get_paged_resource(url, params=params):
            sections.append(CanvasSection(data=data))

        return sections
def get_sections_in_course(self, course_id, params={}):
        url = COURSES_API.format(course_id) + "/sections"

        sections = []
        for data in self._get_paged_resource(url, params=params):
            sections.append(CanvasSection(data=data))

        return sections
def get_sections_in_course ( self , course_id , params = { } ) : url = COURSES_API . format ( course_id ) + "/sections" sections = [ ] for data in self . _get_paged_resource ( url , params = params ) : sections . append ( CanvasSection ( data = data ) ) return sections
Return list of sections for the passed course ID.

        https://canvas.instructure.com/doc/api/sections.html#method.sections.index
Return list of sections for the passed course ID .