Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
true{
"id": 1,
"jsonrpc": "2.0",
"method": "exportRecord",
"params": {
"cortexToken": "xxx",
"folder": "/tmp/edf",
"format": "EDF",
"recordIds": [
"ec0ac33f-ad4e-48b1-bbc3-8502f5c49b62"
],
"streamTypes": [
"EEG",
"MOTION"
]
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"failure": [],
"success": [
{
"recordId": "ec0ac33f-ad4e-48b1-bbc3-8502f5c49b62"
}
]
}
}{
"id": 1,
"jsonrpc": "2.0",
"method": "exportRecord",
"params": {
"cortexToken": "xxx",
"folder": "/tmp/csv1",
"format": "CSV",
"recordIds": [
"ec0ac33f-ad4e-48b1-bbc3-8502f5c49b62"
],
"streamTypes": [
"EEG",
"MOTION",
"PM",
"BP"
],
"version": "V1"
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"failure": [],
"success": [
{
"recordId": "ec0ac33f-ad4e-48b1-bbc3-8502f5c49b62"
}
]
}
}{
"id": 1,
"jsonrpc": "2.0",
"method": "exportRecord",
"params": {
"cortexToken": "xxx",
"folder": "/tmp/csv2",
"format": "CSV",
"recordIds": [
"ec0ac33f-ad4e-48b1-bbc3-8502f5c49b62"
],
"streamTypes": [
"EEG",
"MOTION",
"PM",
"BP"
],
"version": "V2"
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"failure": [],
"success": [
{
"recordId": "ec0ac33f-ad4e-48b1-bbc3-8502f5c49b62"
}
]
}
}{
"id": 1,
"jsonrpc": "2.0",
"method": "updateRecord",
"params": {
"cortexToken": "xxx",
"record": "d8fe7658-71f1-4cd6-bb5d-f6775b03438f",
"description": "My best record ever.",
"tags": ["best", "snow", "direwolf"]
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"applicationId": "com.jon.snow.winterfell-app",
"applicationVersion": "1.0",
"description": "My best record ever.",
"endDatetime": "2019-06-06T11:42:23.436191+07:00",
"experimentId": 0,
"licenseId": "xxx",
"licenseScope": ["pm","eeg"],
"ownerId": "76c3468a-d9c0-428d-81b4-bdac5d63860e",
"startDatetime": "2019-06-06T11:41:53.088632+07:00",
"tags": ["best", "snow", "direwolf"],
"title": "Cortex Examples C++",
"uuid": "d8fe7658-71f1-4cd6-bb5d-f6775b03438f"
}
}{
"id": 1,
"
{
"id": 1,
"
{
"id": 1,
"jsonrpc": "2.0",
"method": "createRecord",
"params": {
"cortexToken": "xxx",
"session": "1067dc90-eb17-489b-9514-69cb79ac696c",
"title": "Cortex Examples C++"
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"record": {
"uuid": "222eb845-bc44-4a01-bf28-07445a7c7e8a",
"applicationId": "com.jon.snow.winterfell-app",
"applicationVersion": "1.0",
"description": "",
"endDatetime": "",
"experimentId": 0,
"licenseId": "xxx",
"licenseScope": ["pm","eeg"],
"ownerId": "76c3468a-d9c0-428d-81b4-bdac5d63860e",
"startDatetime": "2019-05-31T11:06:24.398560+07:00",
"tags": [],
"title": "Cortex Examples C++"
},
"sessionId": "1067dc90-eb17-489b-9514-69cb79ac696c"
}
}{
"id": 1,
"jsonrpc": "2.0",
"method": "deleteRecord",
"params": {
"cortexToken": "xxx",
"records": [
"d8fe7658-71f1-4cd6-bb5d-f6775b03438f",
"invalid-id"
]
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"success": [
{"recordId":"d8fe7658-71f1-4cd6-bb5d-f6775b03438f"}
],
"failure": [
{"recordId":"invalid-id","code":1234,"message":"..."}
]
}
}{
"id": 1,
"jsonrpc": "2.0",
"method": "requestToDownloadRecordData",
"params": {
"cortexToken": "xxx",
"recordIds": [
"33a9aa44-5a90-4881-8613-78493752b86d",
"3a4b7eb0-3b6c-4e16-a480-cbda8181f092"
]
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"failure": [{
"code": -32186,
"message": "The record already exists.",
"recordId": "33a9aa44-5a90-4881-8613-78493752b86d"
}],
"success": [{
"recordId": "3a4b7eb0-3b6c-4e16-a480-cbda8181f092"
}]
}
}{
"id": 1,
"jsonrpc": "2.0",
"method": "getRecordInfos",
"params": {
"cortexToken": "xxx",
"recordIds": ["db01c15e-d916-4a7b-9f1d-16295fd1c643"]
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": [{
"applicationId": "com.jon.snow.winterfell-app",
"applicationVersion": "1.0",
"description": "",
"endDatetime": "2019-06-06T15:57:58.472229+07:00",
"experimentId": 0,
"licenseId": "xxx",
"licenseScope": [
"pm",
"eeg"
],
"markers": [
{
"endDatetime": "2019-06-06T15:57:33.523627+07:00",
"extras": {},
"label": "test1",
"port": "Cortex Example",
"startDatetime": "2019-06-06T15:57:33.523627+07:00",
"type": "instance",
"uuid": "3e8d3a26-f4bf-486c-8ece-6efb8b739a51",
"value": 41
},
{
"endDatetime": "2019-06-06T15:57:49.530743+07:00",
"extras": {},
"label": "test2",
"port": "Cortex Example",
"startDatetime": "2019-06-06T15:57:41.529661+07:00",
"type": "interval",
"uuid": "26fccfd8-e487-4623-910a-1ba8591fcdcf",
"value": 42
}
],
"ownerId": "76c3468a-d9c0-428d-81b4-bdac5d63860e",
"startDatetime": "2019-06-06T15:57:28.596410+07:00",
"subject": {
"subjectName": "Hodor"
},
"tags": [],
"title": "Cortex Examples C++",
"uuid": "db01c15e-d916-4a7b-9f1d-16295fd1c643"
}]
}{
"id": 1,
"jsonrpc": "2.0",
"method": "queryRecords",
"params": {
"cortexToken": "xxx",
"limit": 10,
"offset": 0,
"orderBy": [
{ "startDatetime": "DESC" }
],
"query": {
"applicationId": "com.emotiv.emotivpro",
"licenseId": "yyy"
},
"includeSyncStatusInfo": true
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"count": 1,
"limit": 10,
"offset": 0,
"records": [{
"applicationId": "com.emotiv.emotivpro",
"applicationVersion": "2.6.3",
"demographics": {
"uuid": "",
"validated": false
},
"description": "A simple experiment with a drone",
"endDatetime": "2021-01-06T16:32:50.572490+07:00",
"experimentId": 0,
"headbandPosition": null,
"licenseId": "yyy",
"licenseScope": ["pm", "eeg"],
"localOnly": false,
"ownerId": "ddeca960-9336-4a51-a2d2-9cb6e8fd5524",
"startDatetime": "2021-01-06T16:32:13.431865+07:00",
"subject": {
"subjectName": "Ben Kenobi"
},
"syncStatus": {
"status": "neverUploaded"
},
"tags": [],
"title": "Experiment 42",
"uuid": "1f2a8f85-7200-400a-a8f0-fd5c0b331852"
}]
}
}{
"id": 1,
"jsonrpc": "2.0",
"method": "queryRecords",
"params": {
"cortexToken": "xxx",
"includeMarkers": true,
"limit": 2,
"offset": 0,
"orderBy": [
{
"startDatetime": "DESC"
}
],
"query": {
"keyword": "Cortex Example"
}
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"count": 9,
"limit": 2,
"offset": 0,
"records": [
{
"applicationId": "com.xxx.cortex-examples",
"applicationVersion": "1.0",
"description": "",
"endDatetime": "2020-03-09T15:59:34.794356+07:00",
"experimentId": 0,
"headbandPosition": null,
"licenseId": "xxx",
"licenseScope": [
"pm",
"eeg"
],
"localOnly": false,
"markers": [
{
"endDatetime": "2020-03-09T15:59:09.680802+07:00",
"extras": {},
"label": "test1",
"port": "Cortex Example",
"startDatetime": "2020-03-09T15:59:09.680802+07:00",
"type": "instance",
"uuid": "ba8ed3a9-3e0b-4a17-9227-96ae05fa1767",
"value": 41
},
{
"endDatetime": "2020-03-09T15:59:25.873059+07:00",
"extras": {},
"label": "test2",
"port": "Cortex Example",
"startDatetime": "2020-03-09T15:59:16.867054+07:00",
"type": "interval",
"uuid": "2cfe93cc-f242-49d6-8165-7b13147e7c10",
"value": 42
}
],
"ownerId": "94f7c5ed-3d24-4c29-8243-96aa7db80d4a",
"startDatetime": "2020-03-09T15:59:04.344671+07:00",
"subject": {
"subjectName": "Bob"
},
"tags": [],
"title": "Cortex Examples C++",
"uuid": "b26f35c3-42ee-4612-a9b9-09af04c2ba37"
},
{
"applicationId": "com.xxx.cortex-examples",
"applicationVersion": "1.0",
"description": "",
"endDatetime": "2020-03-09T15:58:37.792248+07:00",
"experimentId": 0,
"headbandPosition": null,
"licenseId": "xxx",
"licenseScope": [
"pm",
"eeg"
],
"localOnly": false,
"markers": [
{
"endDatetime": "2020-03-09T15:58:12.875515+07:00",
"extras": {},
"label": "test1",
"port": "Cortex Example",
"startDatetime": "2020-03-09T15:58:12.875515+07:00",
"type": "instance",
"uuid": "e22d46a0-480a-452a-a65e-d6b4448e3f7b",
"value": 41
},
{
"endDatetime": "2020-03-09T15:58:28.872019+07:00",
"extras": {},
"label": "test2",
"port": "Cortex Example",
"startDatetime": "2020-03-09T15:58:20.873850+07:00",
"type": "interval",
"uuid": "c8fd9191-43da-4e28-970d-bf9f24404c8a",
"value": 42
}
],
"ownerId": "94f7c5ed-3d24-4c29-8243-96aa7db80d4a",
"startDatetime": "2020-03-09T15:58:08.036369+07:00",
"subject": {
"subjectName": "Marie"
},
"tags": [],
"title": "Cortex Examples C++",
"uuid": "33d2c56a-4cdf-4e2b-a5bb-db127f838248"
}
]
}
}{
"status": "notUpload"
}{
"status": "pending"
}{
"status": "uploading",
"percent": 30
}{
"applicationId": "com.jon.snow.winterfell-app",
"applicationVersion": "1.0",
"description": "",
"startDatetime": "2019-06-06T15:57:28.596410+07:00",
"endDatetime": "2019-06-06T15:57:58.472229+07:00",
"experimentId": 0,
"licenseId": "xxx",
"licenseScope": [
"pm",
"eeg"
],
"localOnly": false,
"markers": [
{
"endDatetime": "2019-06-06T15:57:33.523627+07:00",
"extras": {},
"label": "test1",
"port": "Cortex Example",
"startDatetime": "2019-06-06T15:57:33.523627+07:00",
"type": "instance",
"uuid": "3e8d3a26-f4bf-486c-8ece-6efb8b739a51",
"value": 41
},
{
"endDatetime": "2019-06-06T15:57:49.530743+07:00",
"extras": {},
"label": "test2",
"port": "Cortex Example",
"startDatetime": "2019-06-06T15:57:41.529661+07:00",
"type": "interval",
"uuid": "26fccfd8-e487-4623-910a-1ba8591fcdcf",
"value": 42
}
],
"ownerId": "76c3468a-d9c0-428d-81b4-bdac5d63860e",
"subject": {
"subjectName": "Hodor"
},
"tags": ["snow", "cold", "winter"],
"title": "Cortex Examples C++",
"uuid": "db01c15e-d916-4a7b-9f1d-16295fd1c643"
}{
"id": 1,
"jsonrpc": "2.0",
"method": "configOptOut",
"params": {
"cortexToken": "xxx",
"status": "get"
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"currOptOut": false,
"forceOptOut": false,
"message": "Get opt-out configuration successfully",
"optOutAvail": true
}
}{
"id": 1,
"jsonrpc": "2.0",
"method": "configOptOut",
"params": {
"cortexToken": "xxx",
"status": "set",
"newOptOut": true
}
}{
"id": 1,
"jsonrpc": "2.0",
"result": {
"currOptOut": true,
"forceOptOut": false,
"message": "Update opt-out configuration successfully",
"optOutAvail": true
}
}