Motion Detection Switch

Source document: Eye4Cloud Open Platform WebRTC Audio & Video Integration Documentation V1.0.27.html

Request Method: POST

Request URL:

Code Example
Production: https://open.eye4cloud.com/{{open_id}}/open/v1/device/deviceMotionDetectionSwitch

Request Fields

Field Name Required Type Description
device_id Yes string Device ID
timestamp Yes int64 Timestamp in seconds
nonce Yes string Random string, 8-20 characters
sign Yes string See "Sign Generation Examples"
password No string Device password; if omitted, the password registered for the device on the Open Platform is used
data No string Device DATA; an empty string can be passed
imei No string Device IMEI; an empty string can be passed

CURL Request Example

Code Example
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>"
}'

Notes

This module is based on the corresponding deviceMotionDetectionSwitch API in the Eye4Cloud Open Platform WebRTC Audio & Video Integration Documentation V1.0.27. The page preserves the original API path, common authentication fields, and curl call structure; use the corresponding API section as the source of truth for business-specific fields.