Quizzes and API


#1

Hello everyone,

I am trying to figure out how to query for Quizzes using the API to determine how many quizzes have been created and their entryID. I don’t see a mediaType (media.list) specifically for quizzes. I can pull up the media list but how would I drill down just for quizzes? I can’t filter for “Quiz” in the title because what if the creator of the quiz doesn’t use Quiz in their title. I am using Python3 for development.

Thank you.
-romeo


#2

Hi @romeo,

The quiz CRUD operations are handled via the quiz service, for that, see:


So, to get a list of quizzes, which can be filtered based on some criteria [like entryId for instance], you should use quiz->list:

Quiz questions and answers are stored in cuePoint objects [KalturaQuestionCuePoint and KalturaAnswerCuePoint].

Please also see this repo https://github.com/kaltura/quiz-demo and in particular:
https://github.com/kaltura/quiz-demo/blob/master/util_functions.php#L33