Query Tap-to-Run List

Last Updated on : 2023-07-06 08:27:39download

Query a list of tap-to-run on the pages.

API address

GET: /v2.0/iot-03/scenes

Request parameter

Parameter nameTypeINRequiredDescription
page_noIntegerquerytrueThe page number. Default value: 10.
page_sizeIntegerquerytrueThe number of items returned on each page. The value ranges from 1 to 100. Default value: 20.

Return parameter

Parameter nameTypeDescription
resultScenesResThe returned result.

Description of result

Parameter nameTypeDescription
page_noIntegerThe page number.
page_sizeIntegerThe number of items returned on each page.
dataListThe list of data.
totalLongThe total number of items to be returned.

Description of data

Parameter nameTypeDescription
nameStringThe name of a specified scene.
create_timeLongThe time when it is created.
modify_timeLongThe last update time.
scene_idStringThe ID of a specified scene.

Request example

GET: /v2.0/iot-03/scenes

Return example

{
    "result": {
        "data": [
            {
                "create_time": 1634372263345,
                "modify_time": 1634372263345,
                "scene_id": "ESMzZGu9KDAH****",
                "name": "This is a tap-to-run"
            }
        ],
        "page_no": 1,
        "total": 100,
        "page_size": 20
    },
    "t": 1635424385879,
    "success": true
}

Error code

For more information, see error code.