Radcloud Datahandler script: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
 
Line 15: Line 15:
=== Implementation Examples ===
=== Implementation Examples ===
Example projects that show how you can integrate the data handler into your project:
Example projects that show how you can integrate the data handler into your project:
* [https://gitlab.socsci.ru.nl/tsg/jspsych-radcloud-simple-example JsPsych radcloud example: I want the simplest possible setup]
* {{Gitlab|tsg/jspsych-radcloud-simple-example|JsPsych radcloud example: I want the simplest possible setup}}
* [https://gitlab.socsci.ru.nl/tsg/jspsych-radcloud-esmodule JsPsych radcloud example: I want to use modern JavaScript tooling]
* {{Gitlab|tsg/jspsych-radcloud-esmodule|JsPsych radcloud example: I want to use modern JavaScript tooling}}


== Choose Your Own Setup ==
== Choose Your Own Setup ==
Line 26: Line 26:
You do not need to install anything to start using the datahandler. For most experiments, this approach will be sufficient.
You do not need to install anything to start using the datahandler. For most experiments, this approach will be sufficient.


# Go to the following page: [https://www.socsci.ru.nl/tsg/radcloud-datahandler/]
# Go to the following page: {{Gitlab|/tsg/radcloud-datahandler}}
# Copy the link of the version you want (latest or another pinned version).
# Copy the link of the version you want (latest or another pinned version).
# Include the following line in your <code>index.html</code> file pointing to the socsci hosted URL.
# Include the following line in your <code>index.html</code> file pointing to the socsci hosted URL.
Line 36: Line 36:
datahandler.saveData(radcloudApiKey, ppn, mydata);
datahandler.saveData(radcloudApiKey, ppn, mydata);
</pre>
</pre>
'''Note:''' Example project: [https://gitlab.socsci.ru.nl/tsg/jspsych-radcloud-simple-example JsPsych radcloud example: I want the simplest possible setup]
'''Note:''' Example project: {{Gitlab|/tsg/jspsych-radcloud-simple-example|JsPsych radcloud example: I want the simplest possible setup}}


=== I Want to Download the Script and Host It with My Experiment ===
=== I Want to Download the Script and Host It with My Experiment ===
This approach involves using scripts that you can download from Socsci GitLab.
This approach involves using scripts that you can download from Socsci GitLab.


# Login to GitLab and go to: [https://gitlab.socsci.ru.nl/tsg/radcloud-datahandler/-/packages]
# Login to GitLab and go to: {{Gitlab|tsg/radcloud-datahandler/-/packages}}
# Get the latest version of the datahandler by downloading the file under 'datahandler - Generic'.
# Get the latest version of the datahandler by downloading the file under 'datahandler - Generic'.
# Add the script to your JavaScript project.
# Add the script to your JavaScript project.
Line 52: Line 52:
datahandler.saveData(radcloudApiKey, ppn, mydata);
datahandler.saveData(radcloudApiKey, ppn, mydata);
</pre>
</pre>
'''Note:''' Example project: [https://gitlab.socsci.ru.nl/tsg/jspsych-radcloud-example JsPsych radcloud example]
'''Note:''' Example project: {{Gitlab|tsg/jspsych-radcloud-example|JsPsych radcloud example}}


=== I Want to Use Modern JavaScript Tooling ===
=== I Want to Use Modern JavaScript Tooling ===
Line 67: Line 67:
saveData(radcloudApiKey, ppn, mydata);
saveData(radcloudApiKey, ppn, mydata);
</pre>
</pre>
'''Note:''' Example project: [https://gitlab.socsci.ru.nl/tsg/jspsych-radcloud-esmodule JsPsych radcloud example: I want to use modern JavaScript tooling]
'''Note:''' Example project: {{Gitlab|tsg/jspsych-radcloud-esmodule|JsPsych radcloud example: I want to use modern JavaScript tooling}}


== Save Data Parameters ==
== Save Data Parameters ==
Line 107: Line 107:


== JsPsych Radcloud Example ==
== JsPsych Radcloud Example ==
Git checkout project: [https://gitlab.socsci.ru.nl/tsg/jspsych-radcloud-example JsPsych radcloud example]
Git checkout project: {{Gitlab|tsg/jspsych-radcloud-example|JsPsych radcloud example}}


== Migrating from Radcloud-mini ==
== Migrating from Radcloud-mini ==