请扫码查看示例
# deleteRoom ^7.9
删除房间
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
homeId | String | N/A | 家庭 id 必填 |
roomId | String | N/A | 房间 id, 必须 |
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
const params = {
homeId: '家庭id 必填',
roomId: '房间id, 必须',
}
bridge
.deleteRoom(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 接口返回示例
{
"code": "0",
"msg": "房间删除成功"
}
1
2
3
4
5
6
2
3
4
5
6