I wanna make a export page for all completed courses from each user. but which API function I can use best.
I have found the function core_completion_get_course_completion_status
, but the problem is that it needs a courseid
and a userid
. The problem is that with 100 users and every user has 20 couses he has to make 100 x 20 = 2000 API calls. I find that a lot myself.
Does anyone have a better way for me?
You have to make a plugin first, then populate it with web service