getConfig

Use the interface to get the shortcut list.

Request Mode

POST/GET http://ip/V1.0/shortcuts/getConfig

Request Data

NULL

Response Body

{
    "list": [

        {
            "functions": [
                {
                    "id": 311,
                    "name": "PTZ move left"
                },
                {
                    "id": 29,
                    "name": "Wait for 500 ms"
                },
                {
                    "id": 317,
                    "name": "PTZ stop moving"
                }
            ],
            "id": 1725522037805,
            "name": "Move Left"
        },
        {
            "functions": [
                {
                    "id": 315,
                    "name": "PTZ move right"
                },
                {
                    "id": 29,
                    "name": "Wait for 500 ms"
                },
                {
                    "id": 317,
                    "name": "PTZ stop moving"
                }
            ],
            "id": 1725524226309,
            "name": "Move Right"
        },
        {
            "functions": [
                {
                    "id": 12,
                    "name": "Switch to the next scene"
                }
            ],
            "id": 1725525445613,
            "name": "Next Scene"
        }
    ],
    "totalCount": 3,
    "message": "SUCCESS",
    "status": 0
}

HTTP Status Code

Parameter Type Description
status Int Service status code
0: Success
message String Service status description
totalCount Int The total number of shortcuts
list Array of ShortcutsInfo The shortcut list
ShortcutsInfo
Parameter Type Description
id Int The unique ID of the shortcut
name String The shortcut name
functions Array of FunctionInfo The shortcut function list
FunctionInfo
Parameter Type Description
id Int The unique ID of the function
name String The function name

results matching ""

    No results matching ""