Skip to content

Creating the psiturk object

Doug Markant edited this page Oct 18, 2013 · 1 revision

A PsiTurk object must be created at the beginning of your experiment in order to use the javascript library.

// Create the psiturk object
var psiturk = PsiTurk();

// Add some data and save
psiturk.addUnstructuredData('age', 24)
psiturk.saveData();