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

Re: Get the analys with php curl of feedback

$
0
0
by Alex Smirnov.  

My code that works:
curl "https://my_moodlecom/webservice/rest/server.php?wstoken=b6514g31f7aebf617d4659d97b1f7fh3&wsfunction=mod_feedback_get_analysis&moodlewsrestformat=json&feedbackid=2&courseid=292"

I think you are specifying the wrong feedback ID. The one that appears in the address bar of the browser is incorrect.
Try using the mod_feedback_get_feedbacks_by_courses(courseid) method first to get a list of elements of the feedback type. From there you will find out the real ID of your feedback.

Viewing all articles
Browse latest Browse all 2361

Trending Articles



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