- Source:
Functions for interacting with sections within courses
Methods
get(opts, configopt) → {Promise.<CanvasSection>}
- Source:
Gets info on a specific section
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | object containing all arguments
Properties
|
|||||||||||||||||||||
config |
APIConfig |
<optional> |
custom configuration for this specific endpoint call (overwrites defaults that were included when api was initialized) |
Returns:
Canvas Section https://canvas.instructure.com/doc/api/sections.html#Section
- Type
- Promise.<CanvasSection>
list(optsopt, configopt) → {Promise.<Array.<CanvasSection>>}
- Source:
Gets the list of sections in a course
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
object containing all arguments
Properties
|
|||||||||||||||
config |
APIConfig |
<optional> |
custom configuration for this specific endpoint call (overwrites defaults that were included when api was initialized) |
Returns:
list of Canvas Sections https://canvas.instructure.com/doc/api/sections.html#Section
- Type
- Promise.<Array.<CanvasSection>>