Skip to main content

Questions tagged [moodle-api]

Moodle has a number of core APIs that provide tools for Moodle scripts.API's are already having functionality that can be reuse,and allow you to interact with Moodle system. They are essential when writing Moodle plugin, or Moodle customization.

moodle-api
0 votes
0 answers
10 views

How do I get a list of all users using Moodle web services without getting a server timeout

When I use core_user_get_users with lastname && % || email && % to get a list of all users, I get a "504 Gateway Time-out" response. Is there any other ways to provide the ...
Vetle Marentius Nilsen's user avatar
0 votes
0 answers
23 views

How to call API that needs Microsoft login in php?

when I try to call an API that need Microsoft Login using php $client_id = 'a38fdcab-8ebf-4cde-a3fe-001d40caa289'; // replace with your client id $client_secret = 'xxx'; // replace with your client ...
Mahmoud Ezzat's user avatar
0 votes
0 answers
9 views

How to upload a file on an activity alredy created on moodle programmatically?

I have been search how to upload a file to moodle, I understand with the function "core_files_upload" the file is uploaded into a "draft area", but I don't know how to move the ...
Juan Jose's user avatar
0 votes
0 answers
24 views

Is there any Way to create a discount plugin for users who are registered on another webapp?

I am new to Moodle and I have created a basic course page where a user can buy that course after clicking enrol button. First I want to create a plugin or filter which is easier which will check for ...
jumair ahmad's user avatar
0 votes
1 answer
57 views

Invalid Record turn on Edit mode - Moodle 4.3

I recently upgraded Moodle to version 4.3, but the Edit mode option is showing an error when I try to activate it. The platform update didn't show an error; in the previous version, 3.9, it was ...
Valney Filho's user avatar
0 votes
1 answer
52 views

How to authenticate logged-in user in Moodle using ASP.NET Core MVC?

I want to create ASP.NET Core MVC app as Moodle external tool. I created tokens for web services. I know that for Moodle web service is necessary to pass token and web service function name. My ...
Alex's user avatar
  • 5
0 votes
0 answers
45 views

Moodle error when previewing generated quiz from plugin

I am trying to develop a mod plugin within Moodle 4.3. This plugin will take as an input a PDF file, which is parsed then sent to GPT 4 via the API, that will come back with 10 multiple choice ...
Laurențiu-Flavius Istrate's user avatar
0 votes
0 answers
22 views

Is there a way to get cohort memberships for a particular User?

I want to pass a UserId and return all cohort memberships for that particular user. However, it doesn't seem that is possible. I found this very old question on the moodle forums about the exact same ...
Ben's user avatar
  • 101
1 vote
2 answers
67 views

Moodle LMS v3.9 - Course Completion not firing after activity completion

I have a Moodle LMS Self-Hosted solution which uses version v3.9 A course completion has been set to occur when an activity has completed. However, when I this occurs, the activity completion is ...
WilsonP's user avatar
  • 21
1 vote
1 answer
105 views

How do I apply authentication to my ionic app using moodle?

I'm currently working on a Ionic app with a login validation feature. The objective is to verify user-entered login details by cross-referencing them with the corresponding username and password ...
user758078's user avatar
0 votes
1 answer
231 views

Calling the Moodle Rest-API

I am unclear on how to make any API calls to my Moodle web-server from my Node.JS LMS. I already setup the Moodle server and created the user with the correct role, but I don't know how to call it ...
Johnathan Stowers's user avatar
0 votes
0 answers
27 views

LTI conne tion between moodle and brightspace

I am beginner in LTI so help me to create lti connection between moodle and brightspace create lti connection between moodle and brightspace step by step how can I create external tool in brightspace.....
luke nio's user avatar
0 votes
0 answers
160 views

How to skip moodle login page when integrated with Keycloak as IDP (opend id connect)

We are new to Moodle. We are trying to integrate our existing authentication (Keycloak) with moodle. We were able to add keycloak as an identity provider and when accessing Moodle, we can log in using ...
VIJAY JAGADISH's user avatar
0 votes
2 answers
164 views

Set up auto login to Moodle from external site

We are having a external site where customer can select their preferred authentication method(SSO, username/password). Customer's can have multiple users on their account and if they already have IDP ...
Incognita's user avatar
0 votes
0 answers
50 views

Rest Webservice Moodle: Reset a test attempt for a quiz for a user

I want to reset a test result for a user over the rest API from Moodle 4.1 and don't find a solution. Is there a way to do this? I have the user id from the user from moodle and the course id and ...
Mirar's user avatar
  • 171

15 30 50 per page
1
2 3 4 5
23