https://www.example.com.
Example:https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
Parameter | Description |
https | The request protocol is HTTPS, and the request method is POST. |
www.example.com | Webhook URL. |
SdkAppid | SDKAppID assigned by the Instant Messaging console when an application is created. |
CallbackCommand | Fixed as Live.CallbackMemberStateChanged. |
contenttype | Fixed value: JSON. |
{"CallbackCommand":"Live.CallbackAfterMemberStateChanged","RoomId":"room_id","EventType":"Online", // Online or Offline"EventCause":"Enter", // Four types: Enter (enter room), Leave (leave room), HeartbeatInterrupt, HeartbeatRecover"MemberList":[{"Member_Account": "jared"},{"Member_Account": "tommy"}],"EventTime":1703589922780}
Field | Type | Description |
CallbackCommand | String | Webhook command. |
RoomId | String | Room ID. |
EventType | String | Event type: divided into two types, user online and offline, Online, Offline. |
EventCause | String | Event Cause, divided into the following four types: Enter (enter room), Leave (check-out), HeartbeatInterrupt, HeartbeatRecover. |
MemberList | Array | Involved Member List. |
EventTime | Integer | Event trigger timestamp in milliseconds. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Ignore webhook result}
Field | Type | Attribute | Description |
ActionStatus | String | Mandatory | The result of the request process: OK indicates success; FAIL indicates failure. |
ErrorCode | Integer | Mandatory | Error Code, here 0 means to ignore the response result. |
ErrorInfo | String | Mandatory | Error message. |
Feedback