broadcasting

package
v3.0.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 10 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 {
	BaseClient *kernel.BaseClient
}

func RegisterProvider

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

func (*Client) Delete

func (comp *Client) Delete(ctx context.Context, msgID string, index int) (*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(ctx context.Context, message contract.MessageInterface, reception *request.Reception, method string) (*response2.ResponseOfficialAccount, error)

func (*Client) PreviewText

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

func (*Client) Send

func (comp *Client) Send(ctx context.Context, 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(ctx context.Context, mediaID string, reception *request.Reception, attributes *power.HashMap) (interface{}, error)

func (*Client) SendImage

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

func (*Client) SendMessage

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

func (*Client) SendNews

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

func (*Client) SendText

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

func (*Client) SendVideo

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

func (*Client) SendVoice

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

func (*Client) Status

func (comp *Client) Status(ctx context.Context, 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