@lookit/data
v0.2.0
Published
This is a JS implementation of lookit's RESTful API.
Downloads
322
Readme
Data
This package will do the following:
- Load data to be accessed while experiment is running.
- Move data to and from CHS's API.
- Move video content from the client computer to cloud storage.
Load
When an experiment begins, some data will be loaded for use during the experiment. This function is called before an experiment is ran and doesn't need to be called again.
await chsData.load(responseUuid);
Once this data has been loaded, it can be accessed on the window
interface.
The data should be structured as follows:
window.chs = {
study,
child,
pastSessions,
response,
};
For example, child information can be accessed at window.chs.child
and can be
used within your experiment.