wxmp

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAppIDNotMatch       = errors.New("app id not match")
	ErrInvalidBlockSize    = errors.New("invalid block size")
	ErrInvalidPKCS7Data    = errors.New("invalid PKCS7 data")
	ErrInvalidPKCS7Padding = errors.New("invalid padding on input")
)

Functions

func Develop

func Develop(param *typwx.CommonWxaCodeParam)

func Trial

func Trial(param *typwx.CommonWxaCodeParam)

Types

type Param

type Param func(param *typwx.CommonWxaCodeParam)

type Wxmp

type Wxmp interface {
	Auth(appId, appSecret, code string) (*typwx.WxmpSession, error) // 校验凭证
	DecryptUserInfo(appId, encryptedData, iv string) (*typwx.WxmpUserInfo, error)
	DecryptMobileInfo(appId, encryptedData, iv string) (*typwx.WxmpMobileInfo, error)
	CreateLimitedWxaCode(appId, appSecret, path string, width int, args ...Param) ([]byte, error)
	CreateUnLimitedWxaCode(appId, appSecret, scene, page string, width int, args ...Param) ([]byte, error)
	GetUserPhoneNumber(appId, appSecret, code string) (*typwx.WxmpMobileInfo, error)
	GetAccessToken(appId, appSecret string) (string, error)
}

func New

func New() Wxmp

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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