The user sending the query has to actually be enrolled in the course to get any data - check the user token you are sending. Also there would actually have to be events for that course in mdl_event?
The user sending the query has to actually be enrolled in the course to get any data - check the user token you are sending. Also there would actually have to be events for that course in mdl_event?