Get Timer Tasks of a Category

Last Updated on : 2023-12-07 03:33:50

Get the list of timer tasks of a category under a specified device.

API address

GET: /v1.0/devices/{devId}/timers/categories/{category}

Request parameter

Parameter nameTypeINRequiredDescription
devIdStringuritrueThe device ID.
categoryStringuritrueThe category of a specified timer task group.

Return parameter

Parameter nameTypeDescription
resultJSONObjectThe returned result.

Request example

GET: /v1.0/devices/vdevo15445800464****/timers/categories/100

Return example

{
    "result": [
        {
            "groups": [
                {
                    "timers": [
                        {
                            "date": "20200202",
                            "functions": [
                                {
                                    "code": "bright_value_v2",
                                    "value": 5000
                                },
                                {
                                    "code": "switch_led",
                                    "value": true
                                }
                            ],
                            "is_app_push": false,
                            "loops": "0000000",
                            "alias_name": "",
                            "timer_id": 4906528,
                            "timezone_id": "Asia/Shanghai",
                            "group_order": 0,
                            "time": "17:30",
                            "status": 0
                        }
                    ],
                    "id": "000000mwf3"
                }
            ],
            "category": {
                "category": "test",
                "status": 1
            }
        }
    ],
    "t": 1581336613789,
    "success": true
}

Error code

For more information, see error code.