Query Home Members

Last Updated on : 2024-09-10 01:49:20

Query the list of home members based on the home ID.

API address

GET: /v1.0/homes/{home_id}/members

Request parameter

Parameter nameTypeINRequiredDescription
home_idLonguritrueThe home ID.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
country_codeStringThe country code of a specified home member.
member_accountStringThe account of a specified home member.
uidStringThe user ID of a specified home member.
adminBooleanDetermine whether a home member is an administrator. Valid values:
  • true: yes.
  • false: no.
nameStringThe name of a specified home member.
avatarStringThe avatar of a specified home member.
ownerBooleanDetermine whether a home member is the home owner. Valid values:
  • true: yes.
  • false: no.

Request example

GET: /v1.0/homes/242****/members

Return example

{
    "tid": "b0fd5f777d361*****2c7664ef4d3e193",
    "result": [
        {
            "owner": true,
            "admin": true,
            "avatar": "https://images.tuyacn.com/app/default_avatar/avatar4.png",
            "member_account": "86-*********05",
            "country_code": "86",
            "uid": "ay15913*****0677KZlj2",
            "name": "vt.y"
        }
    ],
    "t": 1699338434674,
    "success": true
}

Error code

For more information, see error code.