Documentation ¶
Index ¶
- type OfficialAccount
- func (officialAccount *OfficialAccount) GetAccessToken() (string, error)
- func (officialAccount *OfficialAccount) GetAccessTokenContext(ctx stdcontext.Context) (string, error)
- func (officialAccount *OfficialAccount) GetBasic() *basic.Basic
- func (officialAccount *OfficialAccount) GetBroadcast() *broadcast.Broadcast
- func (officialAccount *OfficialAccount) GetContext() *context.Context
- func (officialAccount *OfficialAccount) GetCustomerMessageManager() *message.Manager
- func (officialAccount *OfficialAccount) GetCustomerServiceManager() *customerservice.Manager
- func (officialAccount *OfficialAccount) GetDataCube() *datacube.DataCube
- func (officialAccount *OfficialAccount) GetDevice() *device.Device
- func (officialAccount *OfficialAccount) GetDraft() *draft.Draft
- func (officialAccount *OfficialAccount) GetFreePublish() *freepublish.FreePublish
- func (officialAccount *OfficialAccount) GetJs() *js.Js
- func (officialAccount *OfficialAccount) GetMaterial() *material.Material
- func (officialAccount *OfficialAccount) GetMenu() *menu.Menu
- func (officialAccount *OfficialAccount) GetOCR() *ocr.OCR
- func (officialAccount *OfficialAccount) GetOauth() *oauth.Oauth
- func (officialAccount *OfficialAccount) GetServer(req *http.Request, writer http.ResponseWriter) *server.Server
- func (officialAccount *OfficialAccount) GetSubscribe() *message.Subscribe
- func (officialAccount *OfficialAccount) GetTemplate() *message.Template
- func (officialAccount *OfficialAccount) GetUser() *user.User
- func (officialAccount *OfficialAccount) SetAccessTokenHandle(accessTokenHandle credential.AccessTokenHandle)
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) GetAccessTokenContext ¶ added in v2.1.4
func (officialAccount *OfficialAccount) GetAccessTokenContext(ctx stdcontext.Context) (string, error)
GetAccessTokenContext 获取access_token
func (*OfficialAccount) GetBasic ¶
func (officialAccount *OfficialAccount) GetBasic() *basic.Basic
GetBasic qr/url 相关配置
func (*OfficialAccount) GetBroadcast ¶
func (officialAccount *OfficialAccount) GetBroadcast() *broadcast.Broadcast
GetBroadcast 群发消息 TODO 待完善
func (*OfficialAccount) GetContext ¶
func (officialAccount *OfficialAccount) GetContext() *context.Context
GetContext get Context
func (*OfficialAccount) GetCustomerMessageManager ¶ added in v2.0.3
func (officialAccount *OfficialAccount) GetCustomerMessageManager() *message.Manager
GetCustomerMessageManager 客服消息接口
func (*OfficialAccount) GetCustomerServiceManager ¶ added in v2.1.4
func (officialAccount *OfficialAccount) GetCustomerServiceManager() *customerservice.Manager
GetCustomerServiceManager 客服管理
func (*OfficialAccount) GetDataCube ¶ added in v2.0.1
func (officialAccount *OfficialAccount) GetDataCube() *datacube.DataCube
GetDataCube 数据统计
func (*OfficialAccount) GetDevice ¶
func (officialAccount *OfficialAccount) GetDevice() *device.Device
GetDevice 获取智能设备的实例
func (*OfficialAccount) GetDraft ¶ added in v2.1.2
func (officialAccount *OfficialAccount) GetDraft() *draft.Draft
GetDraft 草稿箱
func (*OfficialAccount) GetFreePublish ¶ added in v2.1.2
func (officialAccount *OfficialAccount) GetFreePublish() *freepublish.FreePublish
GetFreePublish 发布能力
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) GetOCR ¶ added in v2.0.6
func (officialAccount *OfficialAccount) GetOCR() *ocr.OCR
GetOCR OCR接口
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) GetSubscribe ¶ added in v2.0.7
func (officialAccount *OfficialAccount) GetSubscribe() *message.Subscribe
GetSubscribe 公众号订阅消息
func (*OfficialAccount) GetTemplate ¶
func (officialAccount *OfficialAccount) GetTemplate() *message.Template
GetTemplate 模板消息接口
func (*OfficialAccount) GetUser ¶
func (officialAccount *OfficialAccount) GetUser() *user.User
GetUser 用户管理接口
func (*OfficialAccount) SetAccessTokenHandle ¶
func (officialAccount *OfficialAccount) SetAccessTokenHandle(accessTokenHandle credential.AccessTokenHandle)
SetAccessTokenHandle 自定义access_token获取方式
Directories ¶
Path | Synopsis |
---|---|
Package device 设备相关接口
|
Package device 设备相关接口 |
Package user blacklist 公众号用户黑名单管理 参考文档:https://developers.weixin.qq.com/doc/offiaccount/User_Management/Manage_blacklist.html
|
Package user blacklist 公众号用户黑名单管理 参考文档:https://developers.weixin.qq.com/doc/offiaccount/User_Management/Manage_blacklist.html |
Click to show internal directories.
Click to hide internal directories.