Query Member List by Device ID

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

Query the list of all members by device ID.

API address

GET: /v1.0/devices/{device_id}/users

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.

Return parameter

Parameter nameTypeDescription
resultList

Description of result

Parameter nameTypeDescription
user_idStringThe user ID.
nick_nameStringThe username.
sexIntegerGender.
  • 1: male.
  • 2: female.
birthdayLongDate of birth (day, month, year).
heightIntegerHeight (cm).
weightIntegerWeight (g).
contactStringThe contact information of the user.

Request example

GET: /v1.0/devices/vdevo15345926009****/users

Return example

{
    "result": [
        {
            "birthday": 605517261000,
            "device_id": "vdevo15345926009****",
            "sex": 1,
            "weight": 166,
            "user_id": "000001****",
            "contact": "186563****",
            "nick_name": "wang****",
            "height": 180
        }
    ],
    "t": 1571898808491,
    "success": true
}

Error code

For more information, see error code.