Documentation ¶
Index ¶
- Constants
- type OAuth
- func (auth *OAuth) GetAuthCode(state string) (string, error)
- func (auth *OAuth) GetOpenId(accessToken string) (string, error)
- func (auth *OAuth) GetOpenIdWithAuthCode(authCode string) (string, error)
- func (auth *OAuth) GetToken(code string) (*PrivateInfo, error)
- func (auth *OAuth) Provide(ctx context.Context) interface{}
- type Option
- type Options
- type PrivateInfo
Constants ¶
View Source
const (
URL = "https://graph.qq.com/oauth2.0/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth ¶
type OAuth struct {
// contains filtered or unexported fields
}
func (*OAuth) GetAuthCode ¶
GetAuthCode 获取登录的 Auth code 返回登录扫码的 URL
func (*OAuth) GetOpenIdWithAuthCode ¶
GetOpenIdWithAuthCode 获取 auth code 直接获取用户 openid
type Option ¶
type Option func(*Options)
func WithAppKey ¶
func WithDisplay ¶
func WithNotify ¶ added in v1.3.1
func WithProduct ¶
type PrivateInfo ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.