Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

core_course_get_contents not returning all information

$
0
0
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 module
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
In 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

This happens with Moodle 2.7.7.

Thanks!


Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>