Query Device Members

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

Query the information about device members.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.
user_idStringuritrueThe added user ID.

Return parameter

Parameter nameTypeDescription
resultDeviceUserVO

Description of result

Parameter nameTypeDescription
user_idStringThe user ID.
device_idStringThe device 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/xxx

Return example

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

Error code

For more information, see error code.