...
| Code Block |
|---|
|
{
"command" : "{eventreact}"
} |
POST http://IP-address:port/intellect_core/Event HTTP/1.1
| Code Block |
|---|
|
{
"command" : "{reactevent}"
} |
Request parameters:
| Parameter | Is required | Description |
|---|
| command | Yes | React – a reaction in the Intellect format
Event – an event in the Intellect format |
Request example:
Add captions to video from camera 2 via HTTP request:
| Code Block |
|---|
|
GET http://127.0.0.1:8080/intellect_core/React?command="CAM|2|ADD_SUBTITLES|command<Some text\n!>" |
Generate alarm on camera 2 via HTTP request:
| Code Block |
|---|
|
GET http://127.0.0.1:8080/intellect_core/Event?command="CAM|2|MD_START" |
OR (with the same result)
| Code Block |
|---|
|
POST http://127.0.0.1:8080/intellect_core/Event HTTP/1.1
{
"command" : "CAM|2|MD_START"
} |
Run Macro 1 via HTTP request:
| Code Block |
|---|
|
GET http://127.0.0.1:8080/intellect_core/React?command="MACRO|1|RUN" |
Start recording on Camera 1:
| Code Block |
|---|
|
POST http://127.0.0.1:8080/intellect_core/React HTTP/1.1
{
"command" : "CAM|1|REC"
} |