broadcasting

package
v2.0.1-beta37 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const BROADCASTING_PREVIEW_BY_NAME string = "towxname"
View Source
const BROADCASTING_PREVIEW_BY_OPENID string = "touser"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*kernel.BaseClient
}

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)

func (*Client) Delete

func (comp *Client) Delete(msgID string, index int) (*response2.ResponseOfficialAccount, error)

删除群发【订阅号与服务号认证后均可用】 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html

func (*Client) Preview

func (comp *Client) Preview(data *object.HashMap) (*response2.ResponseOfficialAccount, error)

预览接口【订阅号与服务号认证后均可用】 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html

func (*Client) PreviewMessage

func (comp *Client) PreviewMessage(message contract.MessageInterface, reception *request.Reception, method string) (*response2.ResponseOfficialAccount, error)

func (*Client) PreviewText

func (comp *Client) PreviewText(message string, reception *request.Reception, method string) (*response2.ResponseOfficialAccount, error)

func (*Client) Send

func (comp *Client) Send(message *power.HashMap) (*response.ResponseBroadcastingSend, error)

根据标签进行群发 【订阅号与服务号认证后均可用】 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html

func (*Client) SendCard

func (comp *Client) SendCard(mediaID string, reception *request.Reception, attributes *power.HashMap) (interface{}, error)

func (*Client) SendImage

func (comp *Client) SendImage(mediaID string, reception *request.Reception, attributes *power.HashMap) (interface{}, error)

func (*Client) SendMessage

func (comp *Client) SendMessage(message contract.MessageInterface, reception *request.Reception, attribute *power.HashMap) (interface{}, error)

func (*Client) SendNews

func (comp *Client) SendNews(mediaID string, reception *request.Reception, attributes *power.HashMap) (interface{}, error)

func (*Client) SendText

func (comp *Client) SendText(message string, reception *request.Reception, attributes *power.HashMap) (interface{}, error)

func (*Client) SendVideo

func (comp *Client) SendVideo(mediaID string, reception *request.Reception, attributes *power.HashMap) (interface{}, error)

func (*Client) SendVoice

func (comp *Client) SendVoice(mediaID string, reception *request.Reception, attributes *power.HashMap) (interface{}, error)

func (*Client) Status

func (comp *Client) Status(msgID string) (*response.ResponseBroadcastingStatus, error)

查询群发消息发送状态【订阅号与服务号认证后均可用】 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html

type MessageBuilder

type MessageBuilder struct {
	To *object.HashMap

	Message contract.MessageInterface

	Attribute *object.Attribute
}

func NewMessengerBuilder

func NewMessengerBuilder() *MessageBuilder

func (*MessageBuilder) Build

func (comp *MessageBuilder) Build(prepends *object.HashMap) (*object.HashMap, error)

func (*MessageBuilder) BuildForPreview

func (comp *MessageBuilder) BuildForPreview(by string, user *request.Reception) (*object.HashMap, error)

func (*MessageBuilder) SetMessage

func (comp *MessageBuilder) SetMessage(message contract.MessageInterface) *MessageBuilder

func (*MessageBuilder) SetTo

func (comp *MessageBuilder) SetTo(to *power.HashMap) *MessageBuilder

func (*MessageBuilder) ToAll

func (comp *MessageBuilder) ToAll() *MessageBuilder

func (*MessageBuilder) ToTag

func (comp *MessageBuilder) ToTag(tagID int) *MessageBuilder

func (*MessageBuilder) ToUsers

func (comp *MessageBuilder) ToUsers(openIDs []string) *MessageBuilder

func (*MessageBuilder) With

func (comp *MessageBuilder) With(attributes *power.HashMap) (*MessageBuilder, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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