Transforms a given OpenTDB quiz into a format more suitable for Convoworks usage.
If you want to use an OpenTDB quiz with Convoworks Trivia elements (e.g. trivia round block), and you don't want to have to manually transform questions into the proper format.
amount of questions you want to fetch.category code. Here's a (potentially non-exhaustive) list of categories and their codes:
| Category | Code |
|---|---|
| Film | 11 |
| Video games | 15 |
| Animals | 27 |
| Music | 12 |
| History | 23 |
| Geography | 22 |
| Sports | 21 |
| Television | 14 |
text — The actual text of the question.answers — An array of answer objects, which look like this:
text — The text of the answerletter — The letter associated with the answeris_correct — Boolean; whether the answer is correct or not.correct_answer object that is set to the correct answer. Refer to the layout of answer objects above.OK flow, place the elements you wish to run if the quiz has been successfuly loaded.Not OK flow, place the elements you wish to run if an error occurs and the quiz could not be loaded.