weixin

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 MinPro

type MinPro struct {
	AppID     string `json:"client_id"`
	AppSecret string `json:"client_secret"`
}

MinPro .

func (MinPro) GetAuthorizeURL

func (MinPro) GetAuthorizeURL(state string) string

GetAuthorizeURL .

func (MinPro) GetMPUser

func (mp MinPro) GetMPUser(sessionKey, iv, encryptedData string) (*third.User, error)

GetMPUser .

func (MinPro) GetMPUserPhone

func (mp MinPro) GetMPUserPhone(sessionKey, iv, encryptedData string) (string, error)

GetMPUserPhone .

func (MinPro) GetSession

func (mp MinPro) GetSession(code string) (string, string, error)

GetSession 获取session

func (MinPro) GetType

func (MinPro) GetType() string

GetType .

func (MinPro) GetUser

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

GetUser .

type WeiXin

type WeiXin struct {
	AppID       string `json:"client_id"`
	AppSecret   string `json:"client_secret"`
	RedirectURL string `json:"redirect_url"`
	Display     string `json:"display"`
}

WeiXin .

func (WeiXin) GetAuthorizeURL

func (wx WeiXin) GetAuthorizeURL(state string) string

GetAuthorizeURL .

func (WeiXin) GetType

func (WeiXin) GetType() string

GetType .

func (WeiXin) GetUser

func (wx WeiXin) GetUser(code string) (*third.User, error)

GetUser .

Jump to

Keyboard shortcuts

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