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 | Fixed to: OfficialAccount.CallbackBeforeAddSubscriber. |
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.CallbackBeforeAddSubscriber","Official_Account": "@TOA#_test_for_penn","Operator_Account": "107867","SubscribeAccountList": [{"Subscriber_Account": "jared"},{"Subscriber_Account": "leckie"}],"EventTime": 1670574414123// Millisecond level, event trigger timestamp}
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}
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RefusedSubscribers_Account": [ // List of users who were denied subscription"jared"]}
Field | Type | Attribute | Description |
ActionStatus | String | Mandatory | Processed Request Result: OK: Indicates successful processing FAIL: Indicates failure |
ErrorCode | Integer | Mandatory | Error Code, 0 allows continuing to add requests (including allowing some users to be added); 1 rejects the request. |
ErrorInfo | String | Mandatory | Error message. |
RefusedSubscribers_Account | Array | Optional | Collection of user IDs denied addition. |
この記事はお役に立ちましたか?