moodle-api

convert CURL request into VBA xml Object in MS-Access

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-10 18:17:08
问题 I am trying to handle moodle data from our schools MS-Access database using VBA-code to post xml.objects. I implemented the following code from an example for using the RESTful-API into my VBA-code (source https://moodle.org/plugins/webservice_restful): json code: curl -X POST \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -H 'Authorization: {token}' \ -d'{"options": {"ids":[6]}}' \ "https://localhost/webservice/restful/server.php/core_course_get_courses" This is my

Creating a LTI provider for Moodle

余生长醉 提交于 2021-01-29 02:34:58
问题 I'm trying to create a LTI provider for Moodle. The things that I need from Moodle - course name, students and teachers, as well as enabling a single sign on (getting the session, token, cookie...) I did a research and saw that Moodle 3 supports LTI v2, which is basically a why to communicate through REST API with Moodle, but didn't see an API ref for the optional endpoints, or code samples (looking for nodejs, but every other language will be welcome) Does anyone has experience with it?

Get course contents using webservice

喜欢而已 提交于 2021-01-27 18:30:27
问题 I am using Moodle 3.1+. I am trying to get the course contents using webservice. I have created a course with activity 'lesson'. Now when I try to get the contents of the course using webservice 'core_course_get_contents', I am getting the following response. [{"id":36,"name":" 0","visible":1,"summary":"","summaryformat":1,"modules":[{"id":18,"url":"http:\/\/localhost\/moodle\/mod\/lesson\/view.php?id=18","name":"Lesson1","instance":1,"visible":1,"modicon":"http:\/\/localhost\/moodle\/theme\

Getting information from the Moodle API as a student

醉酒当歌 提交于 2019-12-20 03:38:09
问题 I'm currently a student at a University and I'm using Moodle everyday. I would like to access some information that is available to me (For example, information of the classes I'm taking, Which assignments are due and when , etc) I did some research regarding Moodle's API but it all seemed geared toward the power user who actually runs Moodle (My University). Is there an easy way for me as a student to get the information? My application uses Node.js 回答1: If your university has enabled Web

Moodle integration questions

主宰稳场 提交于 2019-12-12 04:47:23
问题 We are checking all the paths to integrate a .Net application with Moodle, we would like to redirect our .net application users to Moodle so they can take some courses there but I have some questions: Is it required to create a user for each account so they can enroll in a course in Moodle? I mean is it possible to have " anonymous " students taking courses in Moodle? We would like to authenticate our users from our .Net application and redirect them directly to a course in Moodle, is this

Understanding Moodle $context

时光怂恿深爱的人放手 提交于 2019-12-06 04:57:03
问题 From Moodle doc: A context is a space in Moodle where roles can be assigned. I understand that a context is a logical space used to manage Moodle objects. I developed a custom block plugin with a file upload where I use file_prepare_draft_area and file_save_draft_area_files functions.There is a $context parameter that must be passed and I am don't really know what context should I pass ? This mean, I guess, in which logical space should I put my block plugin uploaded files ? In my opinion,

Email using cron and including attachment to email from moodle

时光毁灭记忆、已成空白 提交于 2019-12-04 05:44:06
问题 I would like to send emails only to users that have completed a specific course and add a pdf file (a certificate for completing the course) as attachment to the email, and do so at a specific time using moodle cron. I have looked at some plugins to find out how it's done, but I'm still not sure how exactly I should do this. I need: 1. to know how I would add an attachment to an email (and which API to use), 2. how I would use cron to send the emails to the desired group at a certain time, 3.

Email using cron and including attachment to email from moodle

て烟熏妆下的殇ゞ 提交于 2019-12-02 10:41:47
I would like to send emails only to users that have completed a specific course and add a pdf file (a certificate for completing the course) as attachment to the email, and do so at a specific time using moodle cron. I have looked at some plugins to find out how it's done, but I'm still not sure how exactly I should do this. I need: 1. to know how I would add an attachment to an email (and which API to use), 2. how I would use cron to send the emails to the desired group at a certain time, 3. how to retrieve users that have completed the course so that I could send emails (with attachment) to

Getting information from the Moodle API as a student

一笑奈何 提交于 2019-12-02 01:33:05
I'm currently a student at a University and I'm using Moodle everyday. I would like to access some information that is available to me (For example, information of the classes I'm taking, Which assignments are due and when , etc) I did some research regarding Moodle's API but it all seemed geared toward the power user who actually runs Moodle (My University). Is there an easy way for me as a student to get the information? My application uses Node.js If your university has enabled Web Services for the mobile app, you can generate your own API token and call the Web Services used by the mobile