by Alex Smirnov.
![]()
Hello!I tried it in Moodle 3.11 and 4.1.
I am automating the filling of documents through Python by accessing the moodle via the rest api.In the moodle, students fill out a questionnaire (last name, first name, gender, document numbers, etc.), designed as a Feedback course element.
I'm trying to get student responses in the Feedback element, but the only method that manages to get anything is mod_feedback_get_analysis.The remaining methods return an empty array {'responses': [], 'warnings': []}.As parameters I pass feedbackid and courseid (the id of the course in which this feedback is located).
What am I doing wrong?How to get user responses without mod_feedback_get_analysis method?
The problem with the mod_feedback_get_analysis method is that multiple choice questions (through which, for example, fields such as “Gender” - male or female) are given in the form of statistics, for example, “men - 0.8, women 0.2” and to which students which answer corresponds is notunderstand

curl "https://my_moodlecom/webservice/rest/server.php?wstoken=b6514g31f7aebf617d4659d97b1f7fh3&wsfunction=mod_feedback_get_finished_responses&moodlewsrestformat=json&feedbackid=2&courseid=292"
{"responses":[],"warnings":[]}
{"responses":[],"warnings":[]}