GET request: core_course_get_courses

GET request: core_course_get_courses

by neptune 1 -
Number of replies: 1

Hi,

I'm making the following GET request in postman:  ...?wstoken=********&wsfunction=core_course_get_courses and it's returning all 8 courses that I have set up in Moodle for testing and the user token that I'm using in the URL is only enrolled to 7 of them.

Is there a way to only return the users courses that they're enrolled in?

Thanks,
Chris

Average of ratings: -
In reply to neptune 1

Re: GET request: core_course_get_courses

by Neill Magill -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
It sounds like you want to use the core_enrol_get_users_courses web service