Documentation ¶
Index ¶
- Constants
- type Client
- func (comp *Client) Delete(ctx context.Context, msgID string, index int) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) Preview(ctx context.Context, data *object.HashMap) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) PreviewMessage(ctx context.Context, message contract.MessageInterface, ...) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) PreviewText(ctx context.Context, message string, reception *request.Reception, ...) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) Send(ctx context.Context, message *power.HashMap) (*response.ResponseBroadcastingSend, error)
- func (comp *Client) SendCard(ctx context.Context, mediaID string, reception *request.Reception, ...) (interface{}, error)
- func (comp *Client) SendImage(ctx context.Context, mediaID string, reception *request.Reception, ...) (interface{}, error)
- func (comp *Client) SendMessage(ctx context.Context, message contract.MessageInterface, ...) (interface{}, error)
- func (comp *Client) SendNews(ctx context.Context, mediaID string, reception *request.Reception, ...) (interface{}, error)
- func (comp *Client) SendText(ctx context.Context, message string, reception *request.Reception, ...) (interface{}, error)
- func (comp *Client) SendVideo(ctx context.Context, mediaID string, reception *request.Reception, ...) (interface{}, error)
- func (comp *Client) SendVoice(ctx context.Context, mediaID string, reception *request.Reception, ...) (interface{}, error)
- func (comp *Client) Status(ctx context.Context, msgID string) (*response.ResponseBroadcastingStatus, error)
- type MessageBuilder
- func (comp *MessageBuilder) Build(prepends *object.HashMap) (*object.HashMap, error)
- func (comp *MessageBuilder) BuildForPreview(by string, user *request.Reception) (*object.HashMap, error)
- func (comp *MessageBuilder) SetMessage(message contract.MessageInterface) *MessageBuilder
- func (comp *MessageBuilder) SetTo(to *power.HashMap) *MessageBuilder
- func (comp *MessageBuilder) ToAll() *MessageBuilder
- func (comp *MessageBuilder) ToTag(tagID int) *MessageBuilder
- func (comp *MessageBuilder) ToUsers(openIDs []string) *MessageBuilder
- func (comp *MessageBuilder) With(attributes *power.HashMap) (*MessageBuilder, error)
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) Preview ¶
func (comp *Client) Preview(ctx context.Context, 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 (*Client) PreviewText ¶
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) SendMessage ¶
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) BuildForPreview ¶
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)
Click to show internal directories.
Click to hide internal directories.