hotime/vendor/github.com/silenceper/wechat/v2/miniprogram/README.md
2022-05-24 13:49:25 +08:00

403 B

微信小程序

官方文档

包说明

  • analysis 数据分析相关API

快速入门

wc := wechat.NewWechat()
memory := cache.NewMemory()
cfg := &miniConfig.Config{
    AppID:     "xxx",
    AppSecret: "xxx",
    Cache: memory,
}
miniprogram := wc.GetMiniProgram(cfg)
miniprogram.GetAnalysis().GetAnalysisDailyRetain()