miniprogram

package
v2.1.4-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiniProgram

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

MiniProgram 代小程序实现业务

func NewMiniProgram

func NewMiniProgram(opCtx *openContext.Context, appID string) *MiniProgram

NewMiniProgram 实例化

func (*MiniProgram) GetAccessToken added in v2.1.4

func (miniProgram *MiniProgram) GetAccessToken() (string, error)

GetAccessToken 获取ak

func (*MiniProgram) GetBasic

func (miniProgram *MiniProgram) GetBasic() *basic.Basic

GetBasic 基础信息设置

func (*MiniProgram) GetComponent

func (miniProgram *MiniProgram) GetComponent() *component.Component

GetComponent get component 快速注册小程序相关

func (miniProgram *MiniProgram) GetURLLink() *urllink.URLLink

GetURLLink 小程序URL Link接口 调用前需确认已调用 SetAuthorizerRefreshToken 避免由于缓存中 authorizer_access_token 过期执行中断

func (*MiniProgram) SetAuthorizerRefreshToken added in v2.1.4

func (miniProgram *MiniProgram) SetAuthorizerRefreshToken(authorizerRefreshToken string) *MiniProgram

SetAuthorizerRefreshToken 设置代执操作业务授权账号authorizer_refresh_token

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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