-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
martinkonopka edited this page Apr 5, 2018
·
10 revisions
UXC allows external application to control session recording, stimuli timeline, access gaze data during and after recording. UXC expose this functionality through REST services and websockets implemented with Microsoft SignalR. The local API are by default hosted on this endpoint:
http://localhost:55555/
Before calling the API, ensure:
- UXC has a reservation for the port in the firewall. See Firewall Setup guide.
- REST services accepts and returns data in JSON format, use
content-type: application/json
in request header. - If your web application is hosted on different domain, enable CORS for POST calls.
- If your web application is secured, enable HTTPS for UXC. See Enabling HTTPS guide.
TBA
Each REST API service is described with this template:
## Title
**<HTTP METHOD>** <ROUTE>
<Description>
(### Request
<PARAMETERS LIST, ACCEPTED REQUEST BODY FOR POST REQUESTS>
)?
### Response
* <RESPONSE TYPE AND POSSIBLE VALUES>
### Examples
<EXAMPLE CURL CALLS WITH SAMPLE RESPONSES>
{
"project": "News reading experiment",
"name": "Pilot session",
"devices": [
{ "device": "ET" },
{ "device": "EXTEV" },
{ "device": "KB" },
{ "device": "ME" },
{ "device": "WCV" },
{ "device": "SC" }
],
"welcome": {
"description": "In this experiment you will read news articles.\nTry to identify public opinion about the recent events.",
"id": "User",
"questions": [
{
"actionType": "WriteQuestionAnswer",
"id": "Name",
"isRequired": true
}
]
},
"preSessionSteps": [
{
"action": { "actionType": "EyeTrackerCalibration" }
}
],
"sessionSteps": [
{
"action": { "actionType": "EyeTrackerValidation" }
},
{
"action": {
"actionType": "LaunchProgram",
"path": "c:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"arguments": "https://www.google.com/ --kiosk",
},
"completion": { "hotkeys": [ "F10" ] }
},
{
"action": {
"actionType": "Questionary",
"questions": [
{
"actionType": "WriteQuestionAnswer",
"question": "What is the public opinion about the recent events?",
"isRequired": true
}
]
}
}
],
"postSessionSteps": [
{
"action": {
"actionType": "Instructions",
"instructions": "Thank you for participating in the experiment."
},
"completion": { "duration": "00:00:10" }
}
]
}
- Home
- Usage Examples
- User Manual
- API Reference
- Installation Manual
- Contributing
- Project Documentation