wx

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// access_token 地址
	AccessTokenUrl = "https://api.weixin.qq.com/cgi-bin/token"
	//获取无限制小程序二维码
	CreateUqrcodeUrl = "https://api.weixin.qq.com/wxa/getwxacodeunlimit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUnLimitQRCodeRequest

type GetUnLimitQRCodeRequest struct {
	Scene     string `json:"scene"`
	Page      string `json:"page"`
	AutoColor bool   `json:"auto_color"`
	IsHyaline bool   `json:"is_hyaline"`
	Width     int64  `json:"width"`
}

type Wx

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

func NewWx added in v1.2.9

func NewWx(appId, secret, grantType string, redis *redis.Client) *Wx

@desc 初始化 @auth liuguoqiang 2020-02-25 @param @return

func (*Wx) GetUnLimitQRCode

func (s *Wx) GetUnLimitQRCode(param *GetUnLimitQRCodeRequest, isFresh bool) ([]byte, error)

@desc 获取二维码 @auth liuguoqiang 2020-02-25 @param @return

func (*Wx) InitAuthToken

func (s *Wx) InitAuthToken(isFresh bool) (string, error)

@desc 根据access_token值进行授权 @auth liuguoqiang 2020-02-25 @param $isFresh 是否刷新access_token @return

Jump to

Keyboard shortcuts

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