Method | HTTP request | Description |
---|---|---|
all | GET /sensor | Get the set of all sensors. |
all_by_participant | GET /participant/{participant_id}/sensor | Get all sensors for a participant. |
all_by_researcher | GET /researcher/{researcher_id}/sensor | Get all sensors for a researcher. |
all_by_study | GET /study/{study_id}/sensor | View all sensors in a study. |
create | POST /study/{study_id}/sensor | Create a new Sensor under the given Study. |
delete | DELETE /sensor/{sensor_id} | Delete a Sensor. |
update | PUT /sensor/{sensor_id} | Update an Sensor's settings. |
view | GET /sensor/{sensor_id} | Get a single sensor, by identifier. |
[object] all()
Get the set of all sensors.
Get the set of all sensors.
- Api Key Authentication (Authorization):
import LAMP
from pprint import pprint
# Get the set of all sensors.
result = LAMP.Sensor.all()
pprint(result)
Name | Type | Description | Notes |
---|---|---|---|
transform | str | [optional] |
[object]
- Content-Type: Not defined
- Accept:
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 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[object] all_by_participant(participant_id)
Get all sensors for a participant.
Get the set of all sensors available to a participant, by participant identifier.
- Api Key Authentication (Authorization):
import LAMP
from pprint import pprint
participant_id = 'participant_id_example' # str
# Get all sensors for a participant.
result = LAMP.Sensor.all_by_participant(participant_id)
pprint(result)
Name | Type | Description | Notes |
---|---|---|---|
participant_id | str | ||
transform | str | [optional] |
[object]
- Content-Type: Not defined
- Accept:
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 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[object] all_by_researcher(researcher_id)
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.
- Api Key Authentication (Authorization):
import LAMP
from pprint import pprint
researcher_id = 'researcher_id_example' # str
# Get all sensors for a researcher.
result = LAMP.Sensor.all_by_researcher(researcher_id)
pprint(result)
Name | Type | Description | Notes |
---|---|---|---|
researcher_id | str | ||
transform | str | [optional] |
[object]
- Content-Type: Not defined
- Accept:
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 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[object] all_by_study(study_id)
View all sensors in a study.
Get the set of all sensors available to participants of a single study, by study identifier.
- Api Key Authentication (Authorization):
import LAMP
from pprint import pprint
study_id = 'study_id_example' # str
# View all sensors in a study.
result = LAMP.Sensor.all_by_study(study_id)
pprint(result)
Name | Type | Description | Notes |
---|---|---|---|
study_id | str | ||
transform | str | [optional] |
[object]
- Content-Type: Not defined
- Accept:
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 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str create(study_id, sensor)
Create a new Sensor under the given Study.
Create a new Sensor under the given Study.
- Api Key Authentication (Authorization):
import LAMP
from pprint import pprint
study_id = 'study_id_example' # str
sensor = LAMP.Sensor() # Sensor
# Create a new Sensor under the given Study.
result = LAMP.Sensor.create(study_id, sensor)
pprint(result)
Name | Type | Description | Notes |
---|---|---|---|
study_id | str | ||
sensor | Sensor |
str
- Content-Type:
application/json
- Accept:
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 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete(sensor_id)
Delete a Sensor.
Delete a Sensor.
- Api Key Authentication (Authorization):
import LAMP
from pprint import pprint
sensor_id = 'sensor_id_example' # str
# Delete a Sensor.
result = LAMP.Sensor.delete(sensor_id)
pprint(result)
Name | Type | Description | Notes |
---|---|---|---|
sensor_id | str |
str
- Content-Type: Not defined
- Accept:
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 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str update(sensor_id, sensor)
Update an Sensor's settings.
Update an Sensor's settings.
- Api Key Authentication (Authorization):
import LAMP
from pprint import pprint
sensor_id = 'sensor_id_example' # str
sensor = LAMP.Sensor() # Sensor
# Update an Sensor's settings.
result = LAMP.Sensor.update(sensor_id, sensor)
pprint(result)
Name | Type | Description | Notes |
---|---|---|---|
sensor_id | str | ||
sensor | Sensor |
str
- Content-Type:
application/json
- Accept:
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 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[object] view(sensor_id)
Get a single sensor, by identifier.
Get a single sensor, by identifier.
- Api Key Authentication (Authorization):
import LAMP
from pprint import pprint
sensor_id = 'sensor_id_example' # str
# Get a single sensor, by identifier.
result = LAMP.Sensor.view(sensor_id)
pprint(result)
Name | Type | Description | Notes |
---|---|---|---|
sensor_id | str | ||
transform | str | [optional] |
[object]
- Content-Type: Not defined
- Accept:
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 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]