# Authorization Change Notification Push
when Official Account message template/After the mini program authorizes, cancels, and updates the authorization of the third party platform, the WeChat server will receive the authorization event of the third party platform. 初始值 POST
In the form of relevant notifications.
receive POST
Request, simply return the character string success
. To enhance security, postdata to hit the target xml Will use encryption and decryption at the time of the service request key To encrypt, seeEncryption and Decryption Technology Program, Decryption is required after receiving the push (seeMessage Encryption and Decryption Access Guide
# Field Dxplaination
parameter | type | Field Description |
---|---|---|
AppId | string | Third-Party Platforms appid |
CreateTime | number | timestamp |
InfoType | string | Type of notification, see[InfoType Introductions](#Infotype- Instructions) |
AuthorizerAppid | string | Official Account message template Or Mini Program. appid |
AuthorizationCode | string | Authorization code, which can be used toAccess to Authorization Information |
AuthorizationCodeExpiredTime | nubmer | Authorization Code Expiration Time Unit second |
PreAuthCode | string | Preauthorization code |
# InfoType Introductions
type | Introductions |
---|---|
unauthorized | Deauthorization |
updateauthorized | Renewal authorization |
authorized | Authorization Success |
Example after the push content is decrypted:
# Authorization Success Notification
<xml>
<AppId>Third-party platform appid</AppId>
<CreateTime>1413192760</CreateTime>
<InfoType>authorized</InfoType>
<AuthorizerAppid>Official Account message templateappid</AuthorizerAppid>
<AuthorizationCode>Authorization code</AuthorizationCode>
<AuthorizationCodeExpiredTime>Expiration time</AuthorizationCodeExpiredTime>
<PreAuthCode>Preauthorization code</PreAuthCode>
<xml>
# Cancellation of Authorization Notice
<xml>
<AppId>Third-party platform appid</AppId>
<CreateTime>1413192760</CreateTime>
<InfoType>unauthorized</InfoType>
<AuthorizerAppid>Official Account message templateappid</AuthorizerAppid>
</xml>
# Authorization Update Notification
<xml>
<AppId>Third-party platform appid</AppId>
<CreateTime>1413192760</CreateTime>
<InfoType>updateauthorized</InfoType>
<AuthorizerAppid>Official Account message templateappid</AuthorizerAppid>
<AuthorizationCode>Authorization code</AuthorizationCode>
<AuthorizationCodeExpiredTime>Expiration time</AuthorizationCodeExpiredTime>
<PreAuthCode>Preauthorization code</PreAuthCode>
<xml>