type_platform

package
v1.0.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EventTypeComponentVerifyTicket = "component_verify_ticket"
	EventTypeAuthorized            = "authorized"
	EventTypeUnauthorized          = "unauthorized"
	EventTypeUpdateAuthorized      = "updateauthorized"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	XMLName    xml.Name `xml:"xml"`
	AppId      string
	CreateTime string
	InfoType   string
}

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

type EventComponentVerifyTicket struct {
	Event
	ComponentVerifyTicket string
}

<xml> <AppId>some_appid</AppId> <CreateTime>1413192605</CreateTime> <InfoType>component_verify_ticket</InfoType> <ComponentVerifyTicket>some_verify_ticket</ComponentVerifyTicket> </xml>

type EventUnauthorized

type EventUnauthorized struct {
	Event
	AuthorizerAppid string
}

取消授权通知 <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>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL