by Luca Viggiani.
Hi, this is my first experience in using Moodle default web service.
I'm already successfully consuming some of the methods (REST format) to get information about learner, its enrollments and course contents. However, whean calling core_course_get_contents, according to the documentation, I would expect more information about each object contained in the modules array. For example:
modules//list of moduleIn my case, I need to get the availability information of a SCORM 1.2 Lesson (module). I have set the availability (both start and end) in module settings in Moodle, but that information is not returned by the WS. I only get id, indent, instance, modicon, modname, modplural, name, url, visible
list of (
object {
id int //activity id
url string Optional//activity url
name string //activity module name
instance int Optional//instance id
description string Optional//activity description
visible int Optional//is the module visible
modicon string //activity icon url
modname string //activity module type
modplural string //activity module plural name
availability string Optional//module availability settings
This happens with Moodle 2.7.7.
Thanks!