Method | HTTP request | Description ------------- | ------------- | ------------- allByParticipant | GET /participant/{participant_id}/sensor_event | Get all sensor events for a participant. allByResearcher | GET /researcher/{researcher_id}/sensor_event | Get all sensor events for a researcher by participant. allByStudy | GET /study/{study_id}/sensor_event | Get all sensor events for a study by participant. create | POST /participant/{participant_id}/sensor_event | Create a new SensorEvent for the given Participant. delete | DELETE /participant/{participant_id}/sensor_event | Delete a sensor event.
array[object] allByParticipant(participant.id, origin=var.origin, from=var.from, to=var.to)
Get all sensor events for a participant.
Get the set of all sensor events produced by the given participant.
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
var.origin <- 'origin_example' # character |
var.from <- 3.4 # numeric |
var.to <- 3.4 # numeric |
#Get all sensor events for a participant.
result <- LAMP.SensorEvent$allByParticipant(var.participant.id, origin=var.origin, from=var.from, to=var.to)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- participant.id | character| | origin | character| | [optional] from | numeric| | [optional] to | numeric| | [optional] transform | character| | [optional]
array[object]
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
array[object] allByResearcher(researcher.id, origin=var.origin, from=var.from, to=var.to)
Get all sensor events for a researcher by participant.
Get the set of all sensor events produced by participants of any study conducted by a researcher, by researcher identifier.
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
var.origin <- 'origin_example' # character |
var.from <- 3.4 # numeric |
var.to <- 3.4 # numeric |
#Get all sensor events for a researcher by participant.
result <- LAMP.SensorEvent$allByResearcher(var.researcher.id, origin=var.origin, from=var.from, to=var.to)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- researcher.id | character| | origin | character| | [optional] from | numeric| | [optional] to | numeric| | [optional] transform | character| | [optional]
array[object]
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
array[object] allByStudy(study.id, origin=var.origin, from=var.from, to=var.to)
Get all sensor events for a study by participant.
Get the set of all sensor events produced by participants of a single study, by study identifier.
library(LAMP)
var.study.id <- 'study.id_example' # character |
var.origin <- 'origin_example' # character |
var.from <- 3.4 # numeric |
var.to <- 3.4 # numeric |
#Get all sensor events for a study by participant.
result <- LAMP.SensorEvent$allByStudy(var.study.id, origin=var.origin, from=var.from, to=var.to)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- study.id | character| | origin | character| | [optional] from | numeric| | [optional] to | numeric| | [optional] transform | character| | [optional]
array[object]
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
character create(participant.id, sensor.event)
Create a new SensorEvent for the given Participant.
Create a new SensorEvent for the given Participant.
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
var.sensor.event <- SensorEvent$new(123, "sensor_example", 123) # SensorEvent |
#Create a new SensorEvent for the given Participant.
result <- LAMP.SensorEvent$create(var.participant.id, var.sensor.event)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- participant.id | character| | sensor.event | SensorEvent| |
character
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
character delete(participant.id, origin=var.origin, from=var.from, to=var.to)
Delete a sensor event.
Delete a sensor event.
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
var.origin <- 'origin_example' # character |
var.from <- 3.4 # numeric |
var.to <- 3.4 # numeric |
#Delete a sensor event.
result <- LAMP.SensorEvent$delete(var.participant.id, origin=var.origin, from=var.from, to=var.to)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- participant.id | character| | origin | character| | [optional] from | numeric| | [optional] to | numeric| | [optional]
character
application/json
application/json
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | 200 Success | - | | 400 | 400 Bad Request | - | | 403 | 403 Authorization Failed | - | | 404 | 404 Not Found | - | | 0 | 500 Internal Error | - |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.