# 获取设备属性
# 功能说明
获取设备的详细信息,包括设备头像、昵称等
# 请求uri
/xwopenapi/device/get_attr
# 请求类型
websocket
# 请求参数
一个空的json对象,如:
{}
# 返回参数示例
接口返回参数遵循公共参数中的websocket响应格式
接口返回的content.response
内容base64解码后为以下结构:
{
"code": 0,
"data": {
"device_info": {
"app_uin": 1556,
"binder": [
{
"binder_id": "ouZ5T1qbdK0HImzyaTVKruCFvunA",
"head_img": "http://thirdwx.qlogo.cn/mmopen/4v1qia5iaN21IP3O9icr6xfmnGdPeib5vcibazHVTAmlFNMr3ZQiceuAqWYlMFpgylVqruujOoMtx8BuSXpnxNMyvKhLoDPJon9HVN/132",
"nickname": "测试"
}
],
"device_id": "gh_1a4ecf97bca3_18927ab6fe86d6f6",
"device_uin": 45612982180249813,
"qr_ticket": "",
"remark": "Demo",
"secret": "",
"sn": "gh_1a4ecf97bca3_18927ab6fe86d6f6",
"state": 0
},
"product_info": {
"app_uin": 1556,
"device_desc": "测试小微开源Demo设备",
"device_logo": "http://xwwebimg-75050.gzc.vod.tencent-cloud.com/1621319222865.png",
"device_model": "P1",
"device_name": "小微设备"
}
},
"msg": "ok"
}