Description Format Methods Public fields Methods Examples
LAMP.Participant
An R6Class
generator object
all Get the set of all participants. Get the set of all participants.
@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 the set of all participants under a single researcher. Get the set of all participants under a single researcher.
@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 Get the set of all participants in a single study. Get the set of all participants in a single study.
@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 Participant for the given Study. Create a new Participant for the given Study.
@param study.id character
@param participant Participant
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 participant AND all owned data or event streams. Delete a participant AND all owned data or event streams.
@param participant.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 a Participant's settings. Update a Participant's settings.
@param participant.id character
@param participant Participant
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 participant, by identifier. Get a single participant, by 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 :
apiClient
Handles the client-server communication.
new()
ParticipantApi$new(apiClient)
all()
ParticipantApi$all(transform = NULL, ...)
allWithHttpInfo()
ParticipantApi$allWithHttpInfo(transform = NULL, ...)
allByResearcher()
ParticipantApi$allByResearcher(researcher.id, transform = NULL, ...)
allByResearcherWithHttpInfo()
ParticipantApi$allByResearcherWithHttpInfo( researcher.id, transform = NULL, ... )
allByStudy()
ParticipantApi$allByStudy(study.id, transform = NULL, ...)
allByStudyWithHttpInfo()
ParticipantApi$allByStudyWithHttpInfo(study.id, transform = NULL, ...)
create()
ParticipantApi$create(study.id, participant, ...)
createWithHttpInfo()
ParticipantApi$createWithHttpInfo(study.id, participant, ...)
delete()
ParticipantApi$delete(participant.id, ...)
deleteWithHttpInfo()
ParticipantApi$deleteWithHttpInfo(participant.id, ...)
update()
ParticipantApi$update(participant.id, participant, ...)
updateWithHttpInfo()
ParticipantApi$updateWithHttpInfo(participant.id, participant, ...)
view()
ParticipantApi$view(participant.id, transform = NULL, ...)
viewWithHttpInfo()
ParticipantApi$viewWithHttpInfo(participant.id, transform = NULL, ...)
clone()
The objects of this class are cloneable with this method.
ParticipantApi$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 | ## Not run:
#################### all ####################
library(LAMP)
#Get the set of all participants.
result <- LAMP.Participant$all()
#################### allByResearcher ####################
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
#Get the set of all participants under a single researcher.
result <- LAMP.Participant$allByResearcher(var.researcher.id)
#################### allByStudy ####################
library(LAMP)
var.study.id <- 'study.id_example' # character |
#Get the set of all participants in a single study.
result <- LAMP.Participant$allByStudy(var.study.id)
#################### create ####################
library(LAMP)
var.study.id <- 'study.id_example' # character |
var.participant <- Participant$new() # Participant |
#Create a new Participant for the given Study.
result <- LAMP.Participant$create(var.study.id, var.participant)
#################### delete ####################
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
#Delete a participant AND all owned data or event streams.
result <- LAMP.Participant$delete(var.participant.id)
#################### update ####################
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
var.participant <- Participant$new() # Participant |
#Update a Participant's settings.
result <- LAMP.Participant$update(var.participant.id, var.participant)
#################### view ####################
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
#Get a single participant, by identifier.
result <- LAMP.Participant$view(var.participant.id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.