Re: Moodle REST API - Postman collection
by Ron Meske. Hello All,For Postman, use POST with the following settings:Params: blankAuthentication: No AuthBody: form-dataNote: I have been using the JSON protocol, and the only body type that...
View ArticleRe: Moodle API rest endpoints
by Ron Meske. The most up to date list is your installation of Moodle. On your site go to: your_domain/admin/webservice/documentation.php There are some things you need to do to prepare your site...
View ArticleWebservice-Login doesn't enrol users
by Patrick Witter. Good day. My issue is that when I use the <moodlesite>/login/token.php?service=moodle_mobile_app&moodlewsrestformat=json&username=$username&password=$passwordto...
View Articlecore_role_assign_roles does not work with my admin token
by Patrick Witter. Good day I am trying to use this web-service function core_role_assign_roles with my admin token and it gives the exception "Access to the function core_role_assign_roles() is not...
View ArticleRe: core_role_assign_roles does not work with my admin token
by Patrick Witter. This what I get in detail debug {"exception": "webservice_access_exception","errorcode": "accessexception","message": "Access control exception","debuginfo": "Access to the function...
View ArticleUse a user token to launch a course
by Ron Meske. Hello,I have an existing web site that that has a section with a few online SCORM courses listed. The goal is to host these courses in Moodle for tracking and reporting purposes but...
View Articlemod_assign_save_grades Notifications
by Dominik Höbert. I'm using mod_assign_save_grades API for updating students grades, and every time the grades change the students get a email notification. I am unable to turn off this notification....
View ArticleCan't log in or access the moodle mobile application
by PEV UNIMAR. Hello, I have had this problem for a long time, and I have already tried many things, but I still have not been able to solve it, if the following has happened to someone, I would be...
View ArticleRe: mod_assign_save_grades Notifications
by Michael Hughes. This web service is ultimately calling apply_grade_to_user() in mod/assign/locallib.php, (by way of save_grade()) which sends the notification based on the...
View ArticleGet additional name from core_user_get_users
by John van Cadsand. All,I am getting all user info from core_user_get_users from the API, but i am missing the additional names.Does anyone know how to get this data from the API?Thanks.
View ArticleRe: A problem with mod_assign_get_submissions
by Jesús Pérez. Hi kanthsree, thanks for the tip, using a teacher i can obtain the assigment data. Using the function core_enrol_get_enrolled_users, you can get a teacher id for that course, then ask...
View ArticleRe: A problem with mod_assign_get_submissions
by kanthsree s. Yes, the teacher can. However in my use case above, it was being pulled from a Student login and only the student token was available. Teacher token will be available when the teacher...
View ArticleRe: How to get course assignments using course id (webservices)
by Jesús Pérez. Hi Miguel. It seems to be the same problem like this https://moodle.org/mod/forum/discuss.php?d=438343 Try to use a teacher token, you can obtain it here https://{moodle...
View ArticleRe: mod_assign_save_grades Notifications
by Dominik Höbert. Thank you for your very helpful explanation! I was able to stop the email notification by setting mailed to 1 with mod_assign_set_user_flags directly after changing the grades.
View ArticleProblem with core_user_get_users_by_field
by Владимир Филиппов. Good afternoon! I really need help. I just can’t figure out why, when calling the core_user_get_users_by_field function, it gives an error:array( [exception] =>...
View ArticleRe: Problem with core_user_get_users_by_field
by Владимир Филиппов. Understood with the help of examples in the file /user/tests/externallib_test.php User data is obtained through: $searchparams = array( array('key' => 'email', 'value' =>...
View ArticleRe: error when adding external functions to a web service.
by Richard van Iwaarden. I ran into the same issue today. It seems that installing plugins en removing plugins leaves traces in /admin/webservice/documentation.php? for example. Where do these traces...
View ArticleAny way to log webservice request parameters?
by Ben Torell. Hi there,I'm trying to debug an application that I have that is sending requests to my moodle server registered as an external webservice. I can see the webservice requests in the...
View ArticleTRACK and TRACE HTTP Methods
by Brian Ball. So my security guy is using the NESSUS scanner and has alerted me to some issues on my Moodle server. "The remote web server supports the TRACE and/or TRACK methods. TRACEand TRACK are...
View ArticleRe: TRACK and TRACE HTTP Methods
by Ken Task. Please see:https://www.techstacks.com/howto/disable-tracetrack-in-apache-httpd.htmlonce you disable, check how moodle is affected ...Then, in config.php file...
View Article