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

Re: PowerShell Module

$
0
0
by Pieterjan Heyse.  

These are the calls I currently need and hacked some code together for:

core_course_create_categories
core_course_create_courses
core_group_create_groups
core_cohort_search_cohorts
local_ws_enrolcohort_add_instance
enrol_manual_enrol_users
core_course_import_course

By hacking I mean that I'm doing something like this for those calls:

$body['categories[0][name]'] = 'Test'
$body['categories[0][parent]'] = 0
$resp = MoodleApiCall "core_course_create_categories" $body

The main issue is that I had to install and extra plugin for the local_ws_enrolcohort_add_instance call because I could not find a way to add a cohort to a course in the default API.

Am I correct that only these are not supported in your module?

core_group_create_groups
local_ws_enrolcohort_add_instance
core_course_import_course


I'll log my request to GitHub, maybe other people have this kind of question, too?

Viewing all articles
Browse latest Browse all 2361

Trending Articles



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