Reputation: 177
How can I interact with Moodle Api clients to get to quizzes by course id. The documentation says the mod_quiz_get_quizzes_by_courses requires a courseids array, but I don't know how to pass the array to the to Get request.
Upvotes: 2
Views: 567
Reputation: 63
You can add course IDs to your mod_quiz_get_quizzes_by_courses
request like this:
Key | Value |
---|---|
courseids[0] |
3465 |
courseids[1] |
5743 |
courseids[2] |
4738 |
The brackets have to be encoded in the request.
Source: https://tracker.moodle.org/browse/MDL-50546
Upvotes: 1