I am using the next code, in REST,
but I get the next error message,
Invalid external api parameter: the server was expecting int type
When I fix a id course, for example,
I get the data from course 4, but I dont' know how to use this web service to get all courses list.
Please, can somebody to help me?
Thanks in advance.
I can offer you some solution.
You can use another function. Create one universal user who is enrolled in the all courses. Then use the function "core_enrol_get_users_courses" with your universal user's ID.
I am new to moodle and experimenting with the web services api from a rest standpoint. When I try to call core_course_get_courses I get an access control exception and when I step through with a debugger it looks like this service isn't activated (or at least not in the list of services that are active).
What did you have to do to enable this service and were you able to solve your issue?
How i can get some information from external application using web service in moodle.
core_course_get_contents : get detail a course thought courseid
core_course_get_courses : get info all course in moodle
can anybody help?
just pass as perameter
options[ids]= your course id
if you st it as blank you will get all course are listed for logged user