请扫码查看示例
# checkAuthorize ^7.8
查询是否授权的接口
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
thirtyCode | String | N/A | (第三方的 code,中台分配的)或者(thirtyCode 优先) |
deviceId | String | N/A | xxx(设备 ID) |
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
const params = {
thirtyCode: '(第三方的code,中台分配的)或者(thirtyCode优先)',
deviceId: 'xxx(设备ID)',
}
bridge
.checkAuthorize(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
# 接口返回示例
N / A
1