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 to an application when the application is created in the Chat console. |
CallbackCommand | Fixed as: Follow.CallbackAfterFollowAdd. |
contenttype | The fixed value is: json. |
ClientIP | Client IP address. For example, 127.0.0.1. |
OptPlatform | Client platform. For valid values, see the description of OptPlatform in the Webhook Protocols section of Webhook Overview. |
{"CallbackCommand": "Follow.CallbackAfterFollowAdd","From_Account": "UserID_001","FollowList": [{"To_Account": "UserID_002"},{"To_Account": "UserID_003"}],"EventTime": 1702018343678}
Field | Type | Description |
CallbackCommand | String | Webhook command. |
From_Account | String | UserID of the user who initiates the follow operation. |
FollowList | Array | Array of user objects whose follow operations succeeded. |
To_Account | String | UserID of the user who succeeds in following. |
EventTime | Integer | Event trigger timestamp, in milliseconds. |
{"ActionStatus": "OK","ErrorCode": 0,"ErrorInfo": ""}
Field | Type | Attribute | Description |
ActionStatus | String | Required | Request processing result: OK: processing is successful. FAIL: processing failure. |
ErrorCode | Integer | Required | Error Code: 0: processing is successful. Non-zero: processing failure. |
ErrorInfo | String | Required | Error message. |
Feedback