请扫码查看示例
# getAuthorizeUserControl ^7.8
用户授权控制的接口
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
thirtyCode | String | N/A | (第三方的 code,中台分配的)或者(thirtyCode 优先) |
deviceId | String | N/A | (设备 ID) |
iotAppId | String | N/A | (中台分配的 appId) |
userOption | String | N/A |
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
const params = {
thirtyCode: '(第三方的code,中台分配的)或者(thirtyCode优先)',
deviceId: ' (设备ID)',
iotAppId: '(中台分配的appId)',
userOption: '',
}
bridge
.getAuthorizeUserControl(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
# 接口返回示例
N / A
1