推送授权相关通知
收藏
我的收藏接口介绍
当小程序对第三方小程序应用进行授权、解除授权,以及第三方小程序应用找回授权码时,开放平台服务器会向第三方小程序应用的【授权事件接收 URL】以 HTTP POST 方式推送相应通知。
POST 数据示例(授权成功通知):
{ "Nonce": "4464221", "TimeStamp": "1535551395", "Encrypt": "Encrypt Message xxxxxxxx", "MsgSignature": "ba394c04acece6c2c0edee058c5dddf82474b8ee" }
{ "AppId": "授权小程序的appid", "TpAppId": "第三方小程序应用appid", "EventTime": "2019-01-14 12:45:10", "Event": "AUTHORIZED", "AuthorizationCode": "授权码", "AuthorizationCodeExpiresIn": 3600, "AppName": "代创建的小程序名称", "AppIcon": "代创建的小程序图标", "CompanyName": "代创建的小程序公司主体名称", "AppSuperAdminEmail": "代创建的小程序超管掩码邮箱", "AppSuperAdminMobile": "代创建的小程序超管掩码手机号" }
POST 数据示例(授权解除通知):
{ "Nonce": "4464221", "TimeStamp": "1535551395", "Encrypt": "Encrypt Message xxxxxxxx", "MsgSignature": "ba394c04acece6c2c0edee058c5dddf82474b8ee" }
{ "AppId": "授权小程序的appid", "TpAppId": "第三方小程序应用appid", "EventTime": "2019-01-14 12:45:10", "Event": "UNAUTHORIZED" }
POST 数据示例(授权码找回通知):
{ "Nonce": "4464221", "TimeStamp": "1535551395", "Encrypt": "Encrypt Message xxxxxxxx", "MsgSignature": "ba394c04acece6c2c0edee058c5dddf82474b8ee" }
{ "AppId": "授权小程序的appid", "TpAppId": "第三方小程序应用appid", "EventTime": "2019-01-14 12:45:10", "Event": "UPDATE_AUTHORIZED", "AuthorizationCode": "授权码", "AuthorizationCodeExpiresIn": 3600 }