Is there anyway to trigger contentUserData on an action

Forums: 

Hi!

I've used the H5P PHP Library to implement an integration of H5P on a multi tenant Laravel application. The system can manage libraries on a shared base and contents (database and storage) are fully separated between tenants.

Each tenant's admin have access to the editor and manage his own h5p contents, available for all users attached to this tenant. 

Despite some less important details, I am now trying to get statistics (xAPI) and save user's state.

If I did understand, H5P sends a post request to **contentUserData** url to save user's data, and it does that on a time interval base **saveFreq** setting.

Is there trigger that request on every click or at least on every answered question, whatever the library?

 

Thanks for the help.

otacke's picture

Hi @all!

I answered that question on github. https://github.com/h5p/h5p-php-library/issues/77#issuecomment-574766293

Best,

Oliver