SDKAppID
of the app.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 Chat console when an app is created. |
CallbackCommand | Set to: OfficialAccount.CallbackAfterAddSubscriber. |
contenttype | Fixed value: JSON. |
ClientIP | Client IP, such as: 127.0.0.1. |
OptPlatform | Client Platform, for values please refer to Webhook Overview: Webhook Protocol for the meaning of the OptPlatform parameter. |
{"CallbackCommand": "OfficialAccount.CallbackAfterAddSubscriber","Official_Account": "@TOA#_test_for_penn","Operator_Account": "107867","SubscribeAccountList": [{"Subscriber_Account": "jared"},{"Subscriber_Account": "leckie"}],"EventTime": 1670574414123// Event trigger timestamp in milliseconds}
Object | Features | Feature |
CallbackCommand | String | Webhook command. |
Official_Account | String | Official Account user ID of the subscription. |
Operator_Account | String | Operator UserID who initiated the request. |
SubscribeAccountList | Array | List of subscribers added. |
EventTime | Integer | Event trigger timestamp in milliseconds. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Ignore response results}
Field | Type | Attribute | Description |
ActionStatus | String | Mandatory | Processed Request Result: OK: Indicates successful processing FAIL: Indicates failure |
ErrorCode | Integer | Mandatory | Error Code, 0 means response results can be ignored. |
ErrorInfo | String | Mandatory | Error message. |
Was this page helpful?