Hi,
As it can be seen in the picture, there is a course called "001 Curs numero 1" in my moodle installation.
Once a token has been created and the API functions needed also added in the external service I have been doing all the things I have needed from my web app.
I have tried, for instance, core_user_get_users_by_field, for this student:
And certainly, it worked. For that, I have had to add the API function core_user_get_users_by_field to the external service that I called aodb, just any several others, as you can see in the next image.
My problem is that when I ask for the courses where Bart Simpson is enrolled in, I get no courses.
To do that, I use the curl:
But just get
[]
Can someone explain to me what I am doing wrong?
Any help would be infinitely appreciated!
Carles