get current course

get current course

by Lena Maier -
Number of replies: 0

Hi

I try to get the current course oder module (e.g. an activity module) opened by the current moodle user by moodle WebApi using Rest.

Using core_course_get_course_module didn't work. The error notification says key required. But thats the problem, I don't have the key für current course or moodle. That's why I try to get it by moodle webapi.

core_course_get_courses only gave a list of all courses, but without an info with course the user currently views.

So is there an option to get current module or course (id) using webapi with rest.

Thanks!




Average of ratings: -