2.29、Get Third-Party Push Configuration

Get Third-Party Push Configuration

POSTProduction: https://open.eye4cloud.com/{{open_id}}/open/v1/device/getThirdPartyPushConfigParams
Request Data
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" for the implementation details
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
CURL
curl 'https://open.eye4cloud.com/{{open_id}}/open/v1/device/getThirdPartyPushConfigParams' \
  -H 'Content-Type: application/json' \
  --data-raw '{
    "device_id": "xxxx",
    "timestamp": 1758867195,
    "nonce": "",
    "sign": "",
    "password": ""
}'
Response Data
Field Name Type Description
error_code int Status code: 0 indicates success; other values indicate an error
error_message string Error message; success indicates a normal response
data object {}
data.resp int Response: 1 means execution succeeded; 2 means execution failed
data.alarmPushEnable int Alarm push: 0=do not push, 1=push
data.alarmPushType int Push type: 0=Intellinda, 1=vstarcam
data.heartbeatEnable int Heartbeat enabled: 1=enable heartbeat push, 0=disable heartbeat push
data.heartbeatTime int Heartbeat interval (seconds)
data.heartbeatServer string Heartbeat Server URL
data.alarmPushMainServer string Primary push server URL
data.alarmPushSubServer string Secondary push server URL
data.alarmPushVideo int Whether to push alarm recordings: 0=do not push, 1=push

Example:

JSON
{
    "error_code": 0,
    "error_message": "success",
    "error_tips": "",
    "data": {
            "resp": 1,
    "alarmPushEnable": 1,
    "alarmPushType": 1,
    "heartbeatEnable": 0,
    "heartbeatTime": 120,
    "heartbeatServer": "",
    "alarmPushMainServer": "https://example.com/DEMO_RESOURCE",
    "alarmPushSubServer": "https://example.com/DEMO_RESOURCE",
    "alarmPushVideo": 1
    }
}