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
150
questions with no upvoted or accepted answers
3
votes
0
answers
390
views
Running a Moodle quiz via API
I have been asked to see if we can incorporate some of our Moodle quizes on our webpage, and am having issues finding any information on this.
In effect, what I want to do is allow our webserver to ...
2
votes
0
answers
45
views
Problem: Cannot run existing moodle source code
I downloaded the source code and database of a website developed with moodle. I imported the database locally with the same credentials and just modified the configuration file as follows:
<?php //...
2
votes
1
answer
1k
views
RESTful webservice Moodle plugin Authentication fails
I am using moodle rest plugins for mobile web-services and from this tutorial I have enabled rest API and other related services as per the documentation when I try to test the web service then I got ...
2
votes
0
answers
760
views
Upload scorm packages in moodle course module using moodle rest api
I have already created a course using moodle RestAPI(function name : core_course_create_courses). then i want to upload a scorm package in moodle course module/activity.
i have write some code for ...
2
votes
1
answer
591
views
Mark Moodle activity as complete from within the Activity
We are using Moodle 3.1.1 and trying to find a way to "Mark activity Complete" (via a link or button) from within each activity instead of going back to main course/topics page and checking the "Mark ...
2
votes
0
answers
543
views
Auto login via moodle ( SAML )
I'm using Django 1.6 for a backend and I've created a web application of meta player. I used OAuth2 for login.
Now I'd like to integrate my web Application in a moodle site, so here comes the ...
2
votes
2
answers
972
views
Moodle function to edit contents
Moodle API has functions like
core_course_create_courses()
core_course_duplicate_course()
core_course_get_contents()
These all work fine. Is there a way to set and edit the contents of a course?
...
2
votes
2
answers
826
views
Moodle Docker Web Service working but can not be called from another docker container in the same network
I am running a moodle docker container and one other container to call moodle web service function in a same network. I'm pretty sure I have set up the moodle properly because I can call moodle web ...
1
vote
0
answers
151
views
Moodle API Integration not working. What could be the issue?
I'm doing an integration between a laravel + API of Moodle regarding the manual enrol of a user to a specific course.
Before this, I did the process of create the user using the API, and it works like ...
1
vote
0
answers
54
views
Moodle let user change his own picture
Im working on a moodle new theme and I want to let user change his picture from his profile page what should I do?
I overide the profile page then I tried to make it but i think it will need a new php ...
1
vote
0
answers
133
views
how to convert pluginfile image text link moodle?
I am using Moodle version 4.1.1 in which I am using a custom API that I have created. In the custom API, I am getting the question data from the Moodle question table in which there is question text, ...
1
vote
1
answer
276
views
Moodle Sessions Error Preventing Admin User Creation on Fresh Install
While installing Moodle, in https://mylms.com/user/editadvanced.php?id=2, after filling out the form to create the first admin account, the page redirects to give the following error message "...
1
vote
0
answers
117
views
Duplicating courses with Moodle webservice with included role enrolments
I'm duplicating moodle courses via webservice core_course_duplicate_course. While including role enrolments in the duplicate is easy through UI (see screenshot attached). How can I pass the option for ...
1
vote
1
answer
347
views
Web (Rest/SOAP) API for Moodle Question Bank
I need to make a different front-end I need good API interface for Question Bank/Question Engine? I didn't find much details on this.. Can someone help?
1
vote
1
answer
55
views
How to resolve the appearance of span in mobile phone when using Moodle App
When you view a quiz in the moodle mobile app, the line of code appears with class sr-only in span. How to resolve it in Moodle 4.1 ?
Click to view the error
The page display well in web browser. I ...