checkAuthorize 查询是否授权的接口
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'
#接口调用示例
const params = {
thirtyCode: '(第三方的code,中台分配的)或者(thirtyCode优先)',
deviceId: 'xxx(设备ID)',
}
bridge
.checkAuthorize(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
#接口返回示例
N / A
浙公网安备 33010602011771号