Batch query for the list of associated App user dimension devices

Last Updated on : 2023-12-07 03:33:57download

Batch query related App user dimension device list

API address

GET: /v1.0/iot-01/associated-users/devices

Request parameter

Parameter nameTypeINRequiredDescription
last_row_keyStringqueryfalsePagination ID returned from the previous page
sizeIntegerqueryfalsePage size
start_update_timeLongqueryfalseAccording to the start timestamp of the device update_time query (10 digits)
end_update_timeLongqueryfalseAccording to the end timestamp of the device update_time query (10 digits)

Return parameter

Parameter nameTypeDescription
resultDeviceBatchRes

Description of result

Parameter nameTypeDescription
last_row_keyStringPagination Identification
has_moreBooleanIs there a next page
totalLongTotal
devicesListDevice List

Request example

GET: /v1.0/iot-01/associated-users/devices&last_row_key=xxxxx&size=20&start_update_time=13612321311&end_update_time=136123333223

Return example

{
    "result": {
        "last_row_key": "xxx xxx",
        "devices": [
            {
                "sub": false,
                "create_time": 1575017570,
                "local_key": "11d7f7286caa****",
                "owner_id": " 1160****",
                "biz_type": 310002,
                "ip": "58.251.**.****",
                "icon": "smart/program_category_icon/znyxss.png",
                "product_name": "WiFi Smart Speaker SS190",
                "uuid": " 12****",
                "active_time": 1584063323,
                "uid": "ay156531946658X****",
                "update_time": 1584939489,
                "product_id": "i9vkzktd",
                "time_zone ": "+08:00",
                "name": "WiFi Smart Speaker SS190",
                "online": false,
                "model": "SS190",
                "id": "747b2165d9449964****",
                "category": "znyxss",
                "status": [
                    {
                        "code": "smartspeaker_vol",
                        "value": "26"
                    }
                ]
            }
        ],
        "total": 1,
        "has_more": false
    },
    "t": 1586741851210,
    "success": true
}

Error code

For more information, see error code.