public interface CourseReader extends CanvasReader<Course,CourseReader>
| Modifier and Type | Method and Description |
|---|---|
Optional<Course> |
getSingleCourse(GetSingleCourseOptions options)
Retrieve a specific course from Canvas by its Canvas ID number
|
Optional<Course> |
getSingleCourse(String accountId,
GetSingleCourseOptions options)
Retrieve a specific course from a Canvas account by its Canvas ID number
|
List<Course> |
listActiveCoursesInAccount(ListActiveCoursesInAccountOptions options)
Retrieve a list of all courses on a given account
|
List<Course> |
listCurrentUserCourses(ListCurrentUserCoursesOptions options)
Returns the list of active courses for the current user
|
List<Course> |
listUserCourses(ListUserCoursesOptions options)
Returns the list of active courses for the a user
|
readAsCanvasUser, readAsSisUser, withCallbackList<Course> listCurrentUserCourses(ListCurrentUserCoursesOptions options) throws IOException
options - The object holding options for this API callIOException - When there is an error communicating with CanvasList<Course> listUserCourses(ListUserCoursesOptions options) throws IOException
options - The object holding options for this API callIOException - When there is an error communicating with CanvasOptional<Course> getSingleCourse(GetSingleCourseOptions options) throws IOException
options - The object holding options for this API callIOException - When there is an error communicating with CanvasOptional<Course> getSingleCourse(String accountId, GetSingleCourseOptions options) throws IOException
accountId - The account to look for the course in.options - The object holding options for this API callIOException - When there is an error communicating with CanvasList<Course> listActiveCoursesInAccount(ListActiveCoursesInAccountOptions options) throws IOException
options - AccountCourseListOptions object representing params to this API callIOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.