1、 This interface is implemented by the app side, and the object service is responsible for callback notifications when conditions are triggered.
2、 The callback URL is specified by the callbackUrl parameter passed during the hold or watch interface.
3、 The headers included in the interface callback are specified by requestHeader, which will be returned unchanged.
4、 The fields of the interface request and response should conform to the following format.
{
"version":"",
"objectId": "",
"tangibleId":"",
"events":[
{
"type":"entitlement",
"attr":"rec/takelive...",
"action":"add/delete",
"users":[]
},
{
"type":"create",
"attr":"object",
"action":"create",
"users":[]
},
{
"type":"delete",
"attr":"object/tangible",
"action":"delete",
"users":[]
},
{
"type":"unbind",
"attr":"object-tangible",
"action":"bind/unbind",
"users":[]
},
{
"type":"watch",
"attr":"hold array",
"action":{
"add":[
{
"appName":"",
"user":"",
"description":""
}
],
"delete":[
{
"appName":"",
"user":"",
"description":""
}
]
},
"users":[]
}
]
}
{
"errorCode": "0x0",
"errorInfo": "succ"
}