Versions in this module Expand all Collapse all v0 v0.0.3 Jun 20, 2022 v0.0.2 Jun 20, 2022 v0.0.1 Jun 20, 2022 Changes in this version + const LanguageEn + const LanguageZhCn + const LanguageZhTw + func CheckWebAuthAccessToken(accessToken string, openId string) (wxRsp constant.BaseResponse, err error) + func GetJsApiTicketSign(nonceStr string, ticket string, timeStamp string, url string) (ticketSign string) + type AccessTokenResponse struct + AccessToken string + ErrCode int + ErrMsg string + ExpiresIn int64 + OpenId string + RefreshToken string + Scope string + func GetAccessToken(appId string, appSecret string) (wxRsp AccessTokenResponse, err error) + func GetWebAuthAccessToken(appId string, appSecret string, code string) (wxRsp AccessTokenResponse, err error) + func RefreshWebAuthAccessToken(appId string, refreshToken string) (wxRsp AccessTokenResponse, err error) + type GetJsApiTicketResponse struct + ErrCode int + ErrMsg string + ExpiresIn int64 + Ticket string + func GetJsApiTicket(accessToken string) (wxRsp GetJsApiTicketResponse, err error) + type SendTemplateMessageItem struct + Color string + Value string + type SendTemplateMessageResponse struct + ErrCode int64 + ErrMessage string + MessageID int64 + func SendTemplateMessage(accessToken string, toUserOpenID string, templateID string, detailURL string, ...) (rsp SendTemplateMessageResponse, err error) + type UserInfoResponse struct + City string + Country string + ErrCode int + ErrMsg string + GroupId int + HeadimgUrl string + Language string + Nickname string + OpenId string + Privilege []string + Province string + QrScene int + QrSceneStr string + Remark string + Sex int + Subscribe int + SubscribeScene string + SubscribeTime int + TagidList []int + UnionId string + func GetSnsUserInfo(accessToken string, openId string, lang string) (wxRsp UserInfoResponse, err error) + func GetUserInfo(accessToken string, openId string, lang string) (wxRsp UserInfoResponse, err error)