Query User Information on Pages

Last Updated on : 2023-06-20 15:19:02download

Query the information about users on pages.

API address

GET: /v1.0/iot-02/users

Request parameter

Parameter nameTypeINRequiredDescription
last_row_keyStringqueryfalseThe row key of the last entry on each page.
page_sizeIntegerquerytrueThe number of items to be returned per page.

Return parameter

Parameter nameTypeDescription
resultQueryMerUsersResponseThe returned result.

Description of result

Parameter nameTypeDescription
listListThe returned list of users.
last_row_keyStringThe row key of the last entry on each page.
page_sizeIntegerThe number of items to be returned per page.
has_nextBooleanSpecifies whether to return the next page.

Description of list

Parameter nameTypeDescription
user_nameStringThe username.
country_codeStringThe country code.
user_idStringThe user ID.
create_timeLongThe time when it is created.
user_nick_nameStringThe nickname of a specified user.
account_typeIntegerThe account type.
tenant_codeStringThe code of a specified tenant.

Request example

GET: /v1.0/iot-02/users?last_row_key=&page_size=20

Return example

{
    "result": {
        "last_row_key": "1480****1472",
        "list": [
            {
                "create_time": 1641796814109,
                "user_name": "rootSfWZ",
                "user_nick_name": "",
                "country_code": "86",
                "user_id": "bay1****lSus",
                "tenant_code": "aym0****1426"
            },
            {
                "create_time": 1641796814496,
                "user_name": "userFgMU",
                "user_nick_name": "abc",
                "country_code": "86",
                "user_id": "bay1****O7eE",
                "tenant_code": "aym0****1426"
            }
        ],
        "has_next": false,
        "page_size": 10
    },
    "t": 1641796817618,
    "success": true
}

Error code

For more information, see error code.