Re: Grade API Plugins
by Darko Miletić. MHaairs block has a web service that accepts grades from external sources. It is very specific example but better than nothing.https://docs.moodle.org/30/en/MH_AAIRS_block
View ArticleWeb Service error issue for non admin user
by Ade Oduye. I'm learning about web services and I've setup a user with the necessary tokens and permissions to create a user with the moodle_user_create_users function.My issue is that the...
View ArticleRe: Invalid-parameter errorr from apparenly valid user and group IDs passed...
by Alfonso Rivero. Hi Jocelyn,I'm also having this issue, tried with invalid groupid and userid returning stdClass Object( [exception] => dml_missing_record_exception [errorcode] =>...
View ArticleRe: Invalid-parameter errorr from apparenly valid user and group IDs passed...
by Alfonso Rivero. I've found the solution.Left the comment here for reference to somebody with the same problem.To add a member to a group, the user must be enroled in the course the groups belongs to.
View ArticleWebservice avilable for assigning a cohort to a course?
by marcel montel. I'm looking for a webservice that lets me assign one or more cohorts to a course, but i can not seem to find this kind of functionality, is it available somewhere?eg:...
View ArticleRe: assign user to course problem
by marcel montel. You need to assign the required permissions for that web service to the role that the webservice user has, if you have a look at plugins > web services > external >...
View ArticleRe: Enroll group of users to course from web services?
by marcel montel. Thanks, it seems like i should make use of cohorts instead of groups though, since groups are course unique while cohorts are sitewide groups as i understand it. Looking for a way to...
View ArticleUpdate group Webservice
by Jorge Delgado. Hi!I am working on a moodle wrapping application, by using moodle webservices. I need to maintain categories, courses, users, and groups. I found almost all the webservices I needed,...
View ArticleRe: Rest WS Java: core_user_create_users()
by tamil selvi. hi how to write code for response in java for core_user_create_users();
View ArticleRe: Error while calling core_user_create_user
by tamil selvi. Hi i'm begginer im writing code for core_user_create_users() in java using f.Promise its ask for response function bt,im getting some error. can anybody send sample code for...
View ArticleSend information to an external web service when the attempt of a quiz finishes
by Angie Mariño. Hello friends! I have a big question several days ago but I have not managed to get the answer.I need that when a user finishes his attempt at a quiz certain information be sent to an...
View ArticleDisplay a message when the quiz attemp finishes
by Angie Mariño. I am using the quiz_attempt_submitted event from the locallib.php file but I can not display any messages in moodle.My code is this:function quiz_attempt_submitted_handler($event) {...
View ArticleRe: Get user token
by Trushal Shah. Nice one, I have one question https://www.yourmoodle.com/login/token.php?username=USERNAME&password=PASSWORD&service=SERVICESHORTNAME //Moodle mobile service shortname =>...
View Articlecore_enrol_get_course_enrolment_methods method returns nothing
by Jarod Knoten. I am trying to get a list of enrollment methods for a course. Using the example POST...
View ArticleRe: check password using web service
by vysakh b. Hi I am using moodle version 2.8. I am also creating a web service for android application. I want to check the login password is correct or not . Please help if you find any solution for...
View ArticleRe: Access "Last access to course" via the Web services Api
by Frank Leone. Hi Daniel and others,I am actually looking for the same. Did you have any luck? Anyone else any ideas? best, Frank
View ArticleRe: Access "Last access to course" via the Web services Api
by Daniel Bower. I ended up having to write a plugin to get the data that I wanted.This is the part that I used to determine last logins for a course: // fetch last logins $lastLoginSql...
View ArticleIncorrect access detected, this server may be accessed only through...
by Moataz Desouky. Hello, I am facing a problem when I try to access moodle from an external network (Internet), I installed moodle on Windows server 2012 R2, on a WAMPApache server on the localhost,...
View ArticleRe: Access "Last access to course" via the Web services Api
by Frank Leone. Thanks! Me too actually, like this:public function get_last_access($course, $USER) { global $DB; $lastaccess = $DB->get_field('user_lastaccess', 'timeaccess',...
View Article