by Ivan Herrera.
We are trying to create a function to add to your example code (The one that worked perfectly getting the courses) to get all the events of an user using "core_calendar_get_calendar_events" or all the assignments of an user using "mod_assign_get_assignments".
The trouble is on creating the new function since the GetCourses function works fine.
We think is because of the parameters, but we don't know how to construct the function and we are about to launch the app.
Can you give us an example or a hint from where we can get the functions parameters or how to construct the function?
By the way, this was still very USEFUL
Regards