Hi all.
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).
<EXCEPTION class="webservice_access_exception">
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)
options[0][name]= string
options[0][value]= string
Would something like that?
function = 'moodle_user_get_users_by_courseid&courseid=5&options[0][name]=Course2&options[0][value]=string'
It also happen using "moodle_enrol_get_enrolled_users"
Any suggestions?
Regards