Embed quiz to rails application

Forums: 

Hey I managed to embed a quizz in my rails application but I would like to know if it's possible to use an API to pull out the results after the quizz is done. The documentation is quite obscure and I found nothing about it yet.

Thanks for reading !

otacke's picture

Hi! 

Not sure what's obscure about this page: https://h5p.org/documentation/x-api but you may have dig deeper if you are not familiar with xAPI.

Best,

Oliver 

Hey, Thanks for your answer !

I've downloaded the multichoice repository on https://github.com/h5p. I added the proper css and js in my HTML document but whenever I launch it I get 'TypeError: H5P.Question is undefined' error in my console. Also I've made sure that the script is executed after the iframe that I use to embed my multychoice quizz (I've tryied both before and after) but I still get the error. Do you know what is wrong ?

otacke's picture

Hi, pyrtopyr!

H5P libraries can have dependencies to other libraries, here H5P.Question which provides some common functions for question-like content types.

Have you familiarized yourself with how H5P works? https://h5p.org/documentation/developers/h5p-specification

Also, maybe this is useful for you: https://github.com/tunapanda/h5p-standalone

Best,

Oliver 

Hey, Thanks for your answer !

I've downloaded the multichoice repository on https://github.com/h5p. I added the proper css and js in my HTML document but whenever I launch it I get 'TypeError: H5P.Question is undefined' error in my console. Also I've made sure that the script is executed after the iframe that I use to embed my multychoice quizz (I've tryied both before and after) but I still get the error. Do you know what is wrong ?