officialaccount

package
v1.0.0 Latest Latest
Warning

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

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

README

微信公众号

官方文档

快速入门

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OfficialAccount

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

OfficialAccount 微信公众号相关API

func NewOfficialAccount

func NewOfficialAccount(cfg *config.Config) *OfficialAccount

NewOfficialAccount 实例化公众号API

func (*OfficialAccount) GetAccessToken

func (officialAccount *OfficialAccount) GetAccessToken() (string, error)

GetAccessToken 获取access_token

func (*OfficialAccount) GetBasic

func (officialAccount *OfficialAccount) GetBasic() *basic.Basic

GetBasic qr/url 相关配置

func (*OfficialAccount) GetContext

func (officialAccount *OfficialAccount) GetContext() *context.Context

GetContext get Context

func (*OfficialAccount) GetDevice

func (officialAccount *OfficialAccount) GetDevice() *device.Device

GetDevice 获取智能设备的实例

func (*OfficialAccount) GetJs

func (officialAccount *OfficialAccount) GetJs() *js.Js

GetJs js-sdk配置

func (*OfficialAccount) GetMaterial

func (officialAccount *OfficialAccount) GetMaterial() *material.Material

GetMaterial 素材管理

func (*OfficialAccount) GetMenu

func (officialAccount *OfficialAccount) GetMenu() *menu.Menu

GetMenu 菜单管理接口

func (*OfficialAccount) GetOauth

func (officialAccount *OfficialAccount) GetOauth() *oauth.Oauth

GetOauth oauth2网页授权

func (*OfficialAccount) GetServer

func (officialAccount *OfficialAccount) GetServer(req *http.Request, writer http.ResponseWriter) *server.Server

GetServer 消息管理

func (*OfficialAccount) GetTemplate

func (officialAccount *OfficialAccount) GetTemplate() *message.Template

GetTemplate 模板消息接口

func (*OfficialAccount) GetUser

func (officialAccount *OfficialAccount) GetUser() *user.User

GetUser 用户管理接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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