This interface is implemented by the developer. After the application is approved, the developer can set the implemented callback interface address in the application details page of the management center.
When an independent door sensor records a data entry or alarm, the record is automatically read and uploaded to the cloud. The cloud then calls the interface provided by the developer to achieve near real-time notification of the record.
Note: It is necessary to ensure that the administrator account of the independent door sensor has obtained an access token using the current application's clientId for the current application to receive record push notifications.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx51curl --location -g --request POST 'https://example.com/lockRecord/callback' \2--data-urlencode 'notifyType=7' \3--data-urlencode 'doorSensorId=100123' \4--data-urlencode 'mac=AA:BB:CC:DD:EE:FF' \5--data-urlencode 'recordType=1' \Please note: When testing, please replace https://example.com/lockRecord/callback with the implemented callback address.
| Name | Type | Description |
|---|---|---|
| notifyType | Int | 7 indicates a callback notification for the independent door magnetic sensor's open/closed status. |
| doorSensorId | Int | Door sensor ID |
| mac | String | Door sensor MAC address |
| name | String | Door sensor name |
| recordType | Int | 0: Closed. 1: Open. 2: Door not closed alarm. 3: Door not opened for an extended period alarm. |
Return the string "success" in the response body.