Versions in this module Expand all Collapse all v1 v1.0.0 May 12, 2023 Changes in this version + const LanguageEN + const LanguageZhCN + const LanguageZhTW + const SexFemale + const SexMale + const SexUnknown + func Auth(accessToken, openId string, httpClient *http.Client) (valid bool, err error) + func AuthCodeURL(appId, redirectURI, scope, state string) string + type Endpoint mpoauth2.Endpoint + func NewEndpoint(AppId, AppSecret string) *Endpoint + func (p *Endpoint) ExchangeTokenURL(code string) string + func (p *Endpoint) RefreshTokenURL(refreshToken string) string + type UserInfo mpoauth2.UserInfo + func GetUserInfo(accessToken, openId, lang string, httpClient *http.Client) (info *UserInfo, err error)