miniprogram

package
v0.0.0-...-a0c205e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

微信小程序

官方文档

包说明

  • analysis 数据分析相关API

快速入门

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiniProgram

type MiniProgram struct {
	// contains filtered or unexported fields
}

MiniProgram 微信小程序相关API

func NewMiniProgram

func NewMiniProgram(cfg *config.Config) *MiniProgram

NewMiniProgram 实例化小程序API

func (*MiniProgram) GetAnalysis

func (miniProgram *MiniProgram) GetAnalysis() *analysis.Analysis

GetAnalysis 数据分析

func (*MiniProgram) GetAuth

func (miniProgram *MiniProgram) GetAuth() *auth.Auth

GetAuth 登录/用户信息相关接口

func (*MiniProgram) GetContext

func (miniProgram *MiniProgram) GetContext() *context.Context

GetContext get Context

func (*MiniProgram) GetCustomerMessage

func (miniProgram *MiniProgram) GetCustomerMessage() *message.Manager

GetCustomerMessage 客服消息接口

func (*MiniProgram) GetEncryptor

func (miniProgram *MiniProgram) GetEncryptor() *encryptor.Encryptor

GetEncryptor 小程序加解密

func (*MiniProgram) GetQRCode

func (miniProgram *MiniProgram) GetQRCode() *qrcode.QRCode

GetQRCode 小程序码相关API

func (*MiniProgram) GetSubscribe

func (miniProgram *MiniProgram) GetSubscribe() *subscribe.Subscribe

GetSubscribe 小程序订阅消息

func (*MiniProgram) GetTcb

func (miniProgram *MiniProgram) GetTcb() *tcb.Tcb

GetTcb 小程序云开发API

func (*MiniProgram) GetWeRun

func (miniProgram *MiniProgram) GetWeRun() *werun.WeRun

GetWeRun 微信运动接口

func (*MiniProgram) SetAccessTokenHandle

func (miniProgram *MiniProgram) SetAccessTokenHandle(accessTokenHandle credential.AccessTokenHandle)

SetAccessTokenHandle 自定义access_token获取方式

Directories

Path Synopsis
Package config 小程序config配置
Package config 小程序config配置

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL