getMessageCallback - View the Alarm Callback Address - Imou Open Platform
getMessageCallback: View the alarm callback address
Function details
Get the message callback address information currently set by the developer account.
Note: For the overall process of message push, please refer to Event Message Push Process
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/getMessageCallback
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator accessToken |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"4bb5d3c71ce5df93592358d3d0d4a944",
"time":1603350473,
"nonce":"a4d59add-0f04-4b7e-9355-d1fb4e9dc22b"
},
"id":"d82a7fa7-655f-4bb8-ab75-72bb3dfa3a94",
"params":{
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field name | Field type | Field description | |
|---|---|---|---|
| status | String | Whether to subscribe to news | |
| callbackUrl | String | Message callback URL (when not subscribed, the value is empty) | |
| callbackFlag | String | Callback identifier, separated by commas (when not subscribed, the value is empty), alarm: alarm callback; deviceStatus: device and channel online and offline callback | |
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"callbackFlag":"alarm,deviceStatus",
"callbackUrl":"https://www.baidu.com",
"status":"on"
}
},
"id":"d82a7fa7-655f-4bb8-ab75-72bb3dfa3a94"
}
