Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTypeComponentVerifyTicket = "component_verify_ticket" EventTypeAuthorized = "authorized" EventTypeUpdateAuthorized = "updateauthorized" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventAuthorized ¶
type EventAuthorized struct { Event AuthorizerAppid string AuthorizationCode string AuthorizationCodeExpiredTime string PreAuthCode string }
授权成功通知 <xml>
<AppId>第三方平台appid</AppId> <CreateTime>1413192760</CreateTime> <InfoType>authorized</InfoType> <AuthorizerAppid>公众号appid</AuthorizerAppid> <AuthorizationCode>授权码</AuthorizationCode> <AuthorizationCodeExpiredTime>过期时间</AuthorizationCodeExpiredTime> <PreAuthCode>预授权码</PreAuthCode>
<xml>
type EventComponentVerifyTicket ¶
<xml> <AppId>some_appid</AppId> <CreateTime>1413192605</CreateTime> <InfoType>component_verify_ticket</InfoType> <ComponentVerifyTicket>some_verify_ticket</ComponentVerifyTicket> </xml>
type EventUnauthorized ¶
type EventUnauthorized struct {}
取消授权通知 <xml>
<AppId>第三方平台appid</AppId> <CreateTime>1413192760</CreateTime> <InfoType>unauthorized</InfoType> <AuthorizerAppid>公众号appid</AuthorizerAppid>
</xml>
type EventUpdateAuthorized ¶
type EventUpdateAuthorized struct { Event AuthorizerAppid string AuthorizationCode string AuthorizationCodeExpiredTime string PreAuthCode string }
授权更新通知 <xml>
<AppId>第三方平台appid</AppId> <CreateTime>1413192760</CreateTime> <InfoType>updateauthorized</InfoType> <AuthorizerAppid>公众号appid</AuthorizerAppid> <AuthorizationCode>授权码</AuthorizationCode> <AuthorizationCodeExpiredTime>过期时间</AuthorizationCodeExpiredTime> <PreAuthCode>预授权码</PreAuthCode>
<xml>
Click to show internal directories.
Click to hide internal directories.