Hello Experts,
When using the Moodle WS core function moodle_course_get_courses according to the documentation:
$res = $mdl_ws_client->__soapCall('moodle_course_get_courses', array(array('ids' => array(1, 2, 3))));
... I get the following error returned:
Error Message: Invalid external api parameter: options (Unexpected keys detected in parameter array.)
The WS documentation for this call reads as follows:
Arguments
options (Default to "{$a}")
options - operator OR is used
General structure
Default to "{$a}" //options - operator OR is used
object {
ids Optional //List of course id. If empty return all courses
except front page course.
list of (
int //Course id
)}