RESTful protocol
Premium Certified Partner
Maintained by
Catalyst IT
A REStful webservice plugin for Moodle LMS
This plugin allows Moodle's webservice interface to operate in a more RESTFul way.
Instead of each webservice call having a URL query parameter define what webservice function to use, webservice functions are made available by discrete URLs.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Try removing the braces {} from around the auth token, as outlined in the documentation. If you have any other problems please raise an issue here: https://github.com/catalyst/moodle-webservice_restful/issues
{"exception":"moodle_exception","errorcode":"noauthheader","message":"No Authorization header found in request sent to Moodle"}
but I am sending a valid token in the header with other required information like below
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H 'Authorization: {4838e6771cdbfd1eefbf37b3839587d9}' \
-d'{"options": {"ids":[2]}}' \
"mydomain.com/webservice/restful/server.php/core_course_get_courses"
please help