qq

package
v0.0.0-...-cc65f9c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QQ

type QQ struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	RedirectURL  string `json:"redirect_url"`
	Display      string `json:"display"`
}

QQ .

func (QQ) GetAuthorizeURL

func (qq QQ) GetAuthorizeURL(state string) string

GetAuthorizeURL .

func (QQ) GetType

func (QQ) GetType() string

GetType .

func (QQ) GetUser

func (qq QQ) GetUser(code string) (*third.User, error)

GetUser 获取QQ用户信息,流程如下: 1 获取code 2 获取操作令牌 3 使用操作令牌获取用户编号 4 使用操作令牌和用户编号获取用户信息

Jump to

Keyboard shortcuts

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