Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

How to use Moodle webservices

$
0
0
by Naqi Azam.  

Hello, I'm new to moodle's webservices and I wish to try creating a course via the core_course_create_courses function.

I'm calling the webservice with the following url and its giving me an error, can someone help me out here please.

uri: http://localhost/moodle/webservice/rest/server.php?wstoken=d0b8004660ba1144f8af3e8478ec6b01&moodlewsrestformat=json&wsfunction=core_course_create_courses

error: 

{"exception":"invalid_parameter_exception","errorcode":"invalidparameter","message":"Invalid parameter value detected"}

I'm unable to understand the cause of the error its saying the a parameter has an invalid value but which one? and why?

Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>