Description Format Methods Public fields Methods Examples
LAMP.Sensor
An R6Class
generator object
all Get the set of all sensors. Get the set of all sensors.
@param transform character
status code : 200 | 200 Success
return type : array[object]
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
allByParticipant Get all sensors for a participant. Get the set of all sensors available to a participant, by participant identifier.
@param participant.id character
@param transform character
status code : 200 | 200 Success
return type : array[object]
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
allByResearcher Get all sensors for a researcher. Get the set of all sensors available to participants of any study conducted by a researcher, by researcher identifier.
@param researcher.id character
@param transform character
status code : 200 | 200 Success
return type : array[object]
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
allByStudy View all sensors in a study. Get the set of all sensors available to participants of a single study, by study identifier.
@param study.id character
@param transform character
status code : 200 | 200 Success
return type : array[object]
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
create Create a new Sensor under the given Study. Create a new Sensor under the given Study.
@param study.id character
@param sensor Sensor
status code : 200 | 200 Success
return type : character
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
delete Delete a Sensor. Delete a Sensor.
@param sensor.id character
status code : 200 | 200 Success
return type : character
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
update Update an Sensor's settings. Update an Sensor's settings.
@param sensor.id character
@param sensor Sensor
status code : 200 | 200 Success
return type : character
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
view Get a single sensor, by identifier. Get a single sensor, by identifier.
@param sensor.id character
@param transform character
status code : 200 | 200 Success
return type : array[object]
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
apiClient
Handles the client-server communication.
new()
SensorApi$new(apiClient)
all()
SensorApi$all(transform = NULL, ...)
allWithHttpInfo()
SensorApi$allWithHttpInfo(transform = NULL, ...)
allByParticipant()
SensorApi$allByParticipant(participant.id, transform = NULL, ...)
allByParticipantWithHttpInfo()
SensorApi$allByParticipantWithHttpInfo(participant.id, transform = NULL, ...)
allByResearcher()
SensorApi$allByResearcher(researcher.id, transform = NULL, ...)
allByResearcherWithHttpInfo()
SensorApi$allByResearcherWithHttpInfo(researcher.id, transform = NULL, ...)
allByStudy()
SensorApi$allByStudy(study.id, transform = NULL, ...)
allByStudyWithHttpInfo()
SensorApi$allByStudyWithHttpInfo(study.id, transform = NULL, ...)
create()
SensorApi$create(study.id, sensor, ...)
createWithHttpInfo()
SensorApi$createWithHttpInfo(study.id, sensor, ...)
delete()
SensorApi$delete(sensor.id, ...)
deleteWithHttpInfo()
SensorApi$deleteWithHttpInfo(sensor.id, ...)
update()
SensorApi$update(sensor.id, sensor, ...)
updateWithHttpInfo()
SensorApi$updateWithHttpInfo(sensor.id, sensor, ...)
view()
SensorApi$view(sensor.id, transform = NULL, ...)
viewWithHttpInfo()
SensorApi$viewWithHttpInfo(sensor.id, transform = NULL, ...)
clone()
The objects of this class are cloneable with this method.
SensorApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | ## Not run:
#################### all ####################
library(LAMP)
#Get the set of all sensors.
result <- LAMP.Sensor$all()
#################### allByParticipant ####################
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
#Get all sensors for a participant.
result <- LAMP.Sensor$allByParticipant(var.participant.id)
#################### allByResearcher ####################
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
#Get all sensors for a researcher.
result <- LAMP.Sensor$allByResearcher(var.researcher.id)
#################### allByStudy ####################
library(LAMP)
var.study.id <- 'study.id_example' # character |
#View all sensors in a study.
result <- LAMP.Sensor$allByStudy(var.study.id)
#################### create ####################
library(LAMP)
var.study.id <- 'study.id_example' # character |
var.sensor <- Sensor$new() # Sensor |
#Create a new Sensor under the given Study.
result <- LAMP.Sensor$create(var.study.id, var.sensor)
#################### delete ####################
library(LAMP)
var.sensor.id <- 'sensor.id_example' # character |
#Delete a Sensor.
result <- LAMP.Sensor$delete(var.sensor.id)
#################### update ####################
library(LAMP)
var.sensor.id <- 'sensor.id_example' # character |
var.sensor <- Sensor$new() # Sensor |
#Update an Sensor's settings.
result <- LAMP.Sensor$update(var.sensor.id, var.sensor)
#################### view ####################
library(LAMP)
var.sensor.id <- 'sensor.id_example' # character |
#Get a single sensor, by identifier.
result <- LAMP.Sensor$view(var.sensor.id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.