Versions in this module Expand all Collapse all v1 v1.2.1 Nov 18, 2019 Changes in this version type MiniProgram + func (wxa *MiniProgram) DecryptPhone(sessionKey, encryptedData, iv string) (*PhoneInfo, error) + type PhoneInfo struct + CountryCode string + PhoneNumber string + PurePhoneNumber string + Watermark struct{ ... } v1.2.0 Aug 6, 2019 Changes in this version + var ErrAppIDNotMatch = errors.New("app id not match") + var ErrInvalidBlockSize = errors.New("invalid block size") + var ErrInvalidPKCS7Data = errors.New("invalid PKCS7 data") + var ErrInvalidPKCS7Padding = errors.New("invalid padding on input") + type AnalysisRetainItem struct + Key int + Value int + type Color struct + B string + G string + R string + type MiniProgram struct + func NewMiniProgram(context *context.Context) *MiniProgram + func (wxa *MiniProgram) Code2Session(jsCode string) (result ResCode2Session, err error) + func (wxa *MiniProgram) CreateWXAQRCode(coderParams QRCoder) (response []byte, err error) + func (wxa *MiniProgram) Decrypt(sessionKey, encryptedData, iv string) (*UserInfo, error) + func (wxa *MiniProgram) GetAnalysisDailyRetain(beginDate, endDate string) (result ResAnalysisRetain, err error) + func (wxa *MiniProgram) GetAnalysisDailySummary(beginDate, endDate string) (result ResAnalysisDailySummary, err error) + func (wxa *MiniProgram) GetAnalysisDailyVisitTrend(beginDate, endDate string) (result ResAnalysisVisitTrend, err error) + func (wxa *MiniProgram) GetAnalysisMonthlyRetain(beginDate, endDate string) (result ResAnalysisRetain, err error) + func (wxa *MiniProgram) GetAnalysisMonthlyVisitTrend(beginDate, endDate string) (result ResAnalysisVisitTrend, err error) + func (wxa *MiniProgram) GetAnalysisUserPortrait(beginDate, endDate string) (result ResAnalysisUserPortrait, err error) + func (wxa *MiniProgram) GetAnalysisVisitDistribution(beginDate, endDate string) (result ResAnalysisVisitDistribution, err error) + func (wxa *MiniProgram) GetAnalysisVisitPage(beginDate, endDate string) (result ResAnalysisVisitPage, err error) + func (wxa *MiniProgram) GetAnalysisWeeklyRetain(beginDate, endDate string) (result ResAnalysisRetain, err error) + func (wxa *MiniProgram) GetAnalysisWeeklyVisitTrend(beginDate, endDate string) (result ResAnalysisVisitTrend, err error) + func (wxa *MiniProgram) GetWXACode(coderParams QRCoder) (response []byte, err error) + func (wxa *MiniProgram) GetWXACodeUnlimit(coderParams QRCoder) (response []byte, err error) + type QRCoder struct + AutoColor bool + IsHyaline bool + LineColor Color + Page string + Path string + Scene string + Width int + type ResAnalysisDailySummary struct + List []struct{ ... } + type ResAnalysisRetain struct + RefDate string + VisitUV []AnalysisRetainItem + VisitUVNew []AnalysisRetainItem + type ResAnalysisUserPortrait struct + RefDate string + VisitUV UserPortrait + VisitUVNew UserPortrait + type ResAnalysisVisitDistribution struct + List []VisitDistributionIndex + RefDate string + type ResAnalysisVisitPage struct + List []VisitPageItem + RefDate string + type ResAnalysisVisitTrend struct + List []struct{ ... } + type ResCode2Session struct + OpenID string + SessionKey string + UnionID string + type UserInfo struct + AvatarURL string + City string + Country string + Gender int + Language string + NickName string + OpenID string + Province string + UnionID string + Watermark struct{ ... } + type UserPortrait struct + Ages []UserPortraitItem + City []UserPortraitItem + Devices []UserPortraitItem + Genders []UserPortraitItem + Index int + Platforms []UserPortraitItem + Province []UserPortraitItem + type UserPortraitItem struct + AccessSourceVisitUV int + ID int + Name string + type VisitDistributionIndex struct + Index string + ItemList []VisitDistributionIndexItem + type VisitDistributionIndexItem struct + AccessSourceVisitUV int + Key int + Value int + type VisitPageItem struct + EntrypagePV int + ExitpagePV int + PagePath string + PageSharePV int + PageShareUV int + PageStaytimePV float64 + PageVisitPV int + PageVisitUV int Incompatible versions in this module v2.0.1+incompatible Nov 18, 2019 v2.0.0+incompatible Aug 6, 2019