client package
A small package to directly interact with the World-Wide-Lab API.
Remarks
If you use one of the libraries with a supported integration package, you may not need this package.
Classes
Class | Description |
---|---|
You will need to create an instance of this class to communicate with the World-Wide-Lab server. You can then use the methods of this class to create participants, sessions and responses. | |
A World-Wide-Lab participant, typically used to link multiple Sessions. | |
A world-wide-lab session, corresponding to a person's participation in a study. Use this class to capture responses. | |
Functions
Function | Description |
---|---|
Helper function to return the date exactly one month ago. For use with Client.getLeaderboardScores(). | |
Helper function to return the date exactly one week ago. For use with Client.getLeaderboardScores(). | |
Helper function to return the date exactly one year ago. For use with Client.getLeaderboardScores(). |
Interfaces
Interface | Description |
---|---|
Options to create a new Client instance | |
Options to update an existing Participant. | |
Options to create a new Response | |
Options to create a new Session | |
Options to update an existing Session. | |
Options to get scores from a leaderboard when using Client.getLeaderboardScores() | |
A record of data to add to a leaderboard with Session.addScoreToLeaderboard() |
Variables
Variable | Description |
---|---|
Type Aliases
Type Alias | Description |
---|---|
Options to create a new Participant | |
HTTP method to use for a request | |
Data returned when getting scores from a leaderboard with Client.getLeaderboardScores() |