requestToDownloadRecordData
This method is to ask Cortex to download the EEG/motion/CQ/detections data of a record from the EMOTIV cloud.
Use case
Suppose that the user has installed Cortex on 2 computers, named computer A and computer B. On computer A, the user creates a record, and Cortex uploads this record to the EMOTIV cloud.
Then, on computer B, Cortex automatically downloads the metadata of this record, ie its name, description, start time, end time, etc... So this record is visible when you call methods like queryRecord or getRecordInfos.
But Cortex doesn't automatically download the actual data of the record, ie the EEG, motion, CQ, the results of the detections, etc... So you cannot export this record. To download the actual data, you must call the method "requestToDownloadRecordData".
Parameters
Name | Type | Required | Description |
---|---|---|---|
cortexToken |
| yes | |
recordIds |
| yes | A list of record ids. |
Result
The result is an object with 2 fields:
Name | Type | Description |
---|---|---|
success |
| List of the records that Cortex will start to download. |
failure |
| List of the records that Cortex will not download. |
Each object in the success array include these fields:
Name | Type | Description |
---|---|---|
recordId |
| The id of a record that was added to the Cortex download queue. Cortex will now start the download. |
Each object in the failure array include these fields:
Name | Type | Description |
---|---|---|
recordId |
| The id of a record that Cortex cannot download. |
code |
| The error code for this record. |
message |
| The error message for this record. |
Example
Last updated