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
Click to show internal directories.
Click to hide internal directories.