weixin

package
v0.0.0-...-7a3883e Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WeixinAuthURLCode2Session request url
	WeixinAuthURLCode2Session = "https://api.weixin.qq.com/sns/jscode2session"
	// WeixinAuthGrantTypeDefault grant type
	WeixinAuthGrantTypeDefault = "authorization_code"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WeixinLoginResult

type WeixinLoginResult struct {
	Code       int    `json:"errcode"`
	Openid     string `json:"openid"`
	SessionKey string `json:"session_key"`
	Unionid    string `json:"unionid"`
	Message    string `json:"errmsg"`
}

WeixinLoginResult login result data

func VerifyWeixinLogin

func VerifyWeixinLogin(wxAppID, wxAppSecret, wxCode string, options ...httpclient.ClientOption) WeixinLoginResult

VerifyWeixinLogin verify weixin auth login

func (*WeixinLoginResult) IsSuccess

func (r *WeixinLoginResult) IsSuccess() bool

IsSuccess if the result code is success

Jump to

Keyboard shortcuts

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