Hello everyone,
I just created a web service that allows an external system to access moodle. I followed all the steps, and I authorized the functions that I would like to call being externally. On the other hand, in the list of functions, I do not see any function related to the quizzes. I checked if the mod_quiz was present, it is there but I do not find the functions quiz and I have this error when I make my request:
Request example: http://moodle.etreprof.fr/webservice/rest/server.php wstoken = my_token & wsfunction = mod_quiz_get_attempt_access_information & moodlewsrestformat = json
I have this error:
{
"exception": "dml_missing_record_exception",
"errorcode": "invalidrecord",
"message": "Can not find the data record in the external_functions table of the database.",
"debuginfo": "SELECT * FROM {external_functions} WHERE name =? \ n [array (\ n 0 => 'mod_quiz_get_attempt_access_information', \ n)]"
}
Thank you for your help
I just created a web service that allows an external system to access moodle. I followed all the steps, and I authorized the functions that I would like to call being externally. On the other hand, in the list of functions, I do not see any function related to the quizzes. I checked if the mod_quiz was present, it is there but I do not find the functions quiz and I have this error when I make my request:
Request example: http://moodle.etreprof.fr/webservice/rest/server.php wstoken = my_token & wsfunction = mod_quiz_get_attempt_access_information & moodlewsrestformat = json
I have this error:
{
"exception": "dml_missing_record_exception",
"errorcode": "invalidrecord",
"message": "Can not find the data record in the external_functions table of the database.",
"debuginfo": "SELECT * FROM {external_functions} WHERE name =? \ n [array (\ n 0 => 'mod_quiz_get_attempt_access_information', \ n)]"
}
Thank you for your help