Hey there. I decided to use Moodle API service. To do so, I read and setup all related with this topic.
The Moodle version: Moodle 3.8.2+ (Build: 20200320)
The Moodle API function: gradereport_overview_get_course_grades
The Moodle API consuming sintax:
https://itispirit.com/edu/webservice/rest/server.php?wstoken=<authorized_user_token>&wsfunction=gradereport_overview_get_course_grades&userid=97&moodlewsrestformat=json
The Moodle API function sent back on the computer screen the following message:
{"exception":"required_capability_exception","errorcode":"nopermissions","message":"Sorry, but you do not currently have permissions to do that (View grades of other users)."}
Any idea how can I fix this API errorcode?
Thanks in Advance
Mónico Briseño