officialAccount

package
v2.0.1-beta3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapUserConfig added in v2.0.8

func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)

Types

type Log added in v2.0.8

type Log struct {
	Level string
	File  string
}

type OAuth added in v2.0.8

type OAuth struct {
	Callback string
	Scopes   []string
}

type OfficialAccount

type OfficialAccount struct {
	*kernel.ServiceContainer

	Base        *base.Client
	AccessToken *auth.AccessToken

	Config *kernel.Config

	User *user.Client
	Tag  *tag.Client

	Media *media2.Client
}

func NewOfficialAccount

func NewOfficialAccount(config *UserConfig) (*OfficialAccount, error)

func (*OfficialAccount) GetAccessToken

func (app *OfficialAccount) GetAccessToken() *kernel.AccessToken

func (*OfficialAccount) GetComponent

func (app *OfficialAccount) GetComponent(name string) interface{}

func (*OfficialAccount) GetConfig

func (app *OfficialAccount) GetConfig() *kernel.Config

func (*OfficialAccount) GetContainer

func (app *OfficialAccount) GetContainer() *kernel.ServiceContainer

type UserConfig added in v2.0.8

type UserConfig struct {
	AppID  string
	Secret string

	ResponseType string
	Log          Log
	OAuth        OAuth
	Cache        kernel.CacheInterface

	HttpDebug bool
	Debug     bool
}

Jump to

Keyboard shortcuts

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