https://api.sciener.com/v3/standaloneDoorSensor/configAlertFlag
调用本接口保存提醒配置之后,需要重新开闭门磁一次来让配置生效。
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx91curl --location -g --request POST 'https://api.sciener.com/v3/standaloneDoorSensor/configAlertFlag' \2--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \3--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \4--data-urlencode 'doorSensorId=100123' \5--data-urlencode 'notCloseAlertFlag=1' \6--data-urlencode 'notCloseAlertSecondNum=100' \7--data-urlencode 'longTimeNotOpenAlertFlag=1' \8--data-urlencode 'longTimeNotOpenDayNum=10' \9--data-urlencode 'date=1625025703000'| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| clientId | String | Y | 创建应用分配的client_id |
| accessToken | String | Y | 访问令牌,通过获取访问令牌接口获取 |
| doorSensorId | Int | Y | 独立门磁ID |
| notCloseAlertFlag | Int | Y | 门未关提醒标志位 取值范围 1-开启,2-关闭 |
| notCloseAlertSecondNum | Int | N | 门未关提醒时间,单位:秒 取值范围 1~900 秒 |
| longTimeNotOpenAlertFlag | Int | Y | 长时间未开门提醒标志位 取值范围 1-开启,2-关闭 |
| longTimeNotOpenDayNum | Int | N | 长时间未开门提醒时间,单位:天 取值范围 1-15天 |
| date | Long | Y | 当前时间(时间戳,单位毫秒) |
| 参数 | 类型 | 描述 |
|---|---|---|
| errcode | Int | 错误码 |
| errmsg | String | 错误信息 |
| errmsg | String | 错误信息 |
xxxxxxxxxx51{2"errcode": 0,3"errmsg": "none error message",4"description":"表示成功或是"5}