This is my first post.
I'm trying to get the enrolled users in a course using webservices and the REST protocol. I'm programming in python and previously i have used other webservices as get_courses or create_users. The problem is that I can't put well the parameters (I think).
I looked at the API information, and has required arguments: course and options. Options is a list that includes name and value.
1. What is value?
2. Why must the name? Do not represented that already obtained from the id?
- courseid (Requerido)
int //course id
- options (Requerido)
REST (parámetros POST)
Would something like that?
function = 'moodle_user_get_users_by_courseid&courseid=5&options[name]=Course2&options[value]=string'
It also happen using "moodle_enrol_get_enrolled_users"