A javascript module to retrieve enrolled coruses from the server.
- Source:
- Copyright:
- 2018 Bas Brands
- 2018 Bas Brands
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(static, constant) setFavouriteCourses
Set the favourite state on a list of courses.
Valid args are: Array courses list of course id numbers.
(static, constant) updateUserPreferences
Update the user preferences.
Methods
(inner) getEnrolledCoursesByTimeline(args) → {promise}
Retrieve a list of enrolled courses.
Valid args are: string classification future, inprogress, past int limit number of records to retreive int Offset offset for pagination int sort sort by lastaccess or name
Parameters:
Name | Type | Description |
---|---|---|
args |
object | The request arguments |
Returns:
Resolved with an array of courses
- Type
- promise