来源文档:小鹰开放平台webrtc音视频接入文档v1.0.27.html
请求方式:POST
请求地址:
正式:https://open.eye4cloud.com/{{open_id}}/open/v1/device/deviceMotionDetectionSwitch
| 字段名 | 是否必传 | 类型 | 备注 |
|---|---|---|---|
| device_id | 是 | string | 设备 id |
| timestamp | 是 | int64 | 时间戳,单位:秒 |
| nonce | 是 | string | 随机字符串,8~20 个字符 |
| sign | 是 | string | 参考《生成 sign 的示例代码》 |
| password | 否 | string | 设备密码,不传则使用开放平台中注册设备的密码 |
| data | 否 | string | 设备 DATA,可传空字符串 |
| imei | 否 | string | 设备 IMEI,可传空字符串 |
curl 'https://open.eye4cloud.com/xxxxx/open/v1/device/deviceMotionDetectionSwitch' \
-H 'Content-Type: application/json' \
--data-raw '{
"device_id": "xxxx",
"timestamp": 1758867195,
"nonce": "<YOUR_NONCE>",
"sign": "<EXPIRED_SIGN>",
"password": "<YOUR_DEVICE_PASSWORD>"
}'
该模块来自《小鹰开放平台webrtc音视频接入文档v1.0.27》中对应的 `deviceMotionDetectionSwitch` 接口。页面保留原文接口路径、公共鉴权字段和 curl 调用结构,具体业务字段以文档接口段落为准。