Links

Get Raw Sample Slice

Get slice of raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is
get
https://studio.edgeimpulse.com/v1
/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice
Get raw sample (slice)

Get slice of raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.

Parameters
Path
projectId*
integer
Project ID
dspId*
integer
DSP Block ID, use the impulse functions to retrieve the ID
sampleId*
integer
Sample ID
Query
sliceStart*
integer
Begin index of the slice
sliceEnd*
integer
End index of the slice
Responses
200: OK
OK
cURL
Python
Node.js
curl --request GET \
--url 'https://studio.edgeimpulse.com/v1/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice?sliceStart=SOME_INTEGER_VALUE&sliceEnd=SOME_INTEGER_VALUE' \
--header 'x-jwt-token: REPLACE_KEY_VALUE'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
headers = { 'x-jwt-token': "REPLACE_KEY_VALUE" }
conn.request("GET", "/v1/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice?sliceStart=SOME_INTEGER_VALUE&sliceEnd=SOME_INTEGER_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'GET',
url: 'https://studio.edgeimpulse.com/v1/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice',
qs: {sliceStart: 'SOME_INTEGER_VALUE', sliceEnd: 'SOME_INTEGER_VALUE'},
headers: {'x-jwt-token': 'REPLACE_KEY_VALUE'}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});