Documentation ¶
Index ¶
- Constants
- type Client
- func (comp *Client) AddTemplate(ctx context.Context, tplIdShort string, keywordNameList []string) (*response.ResponseTemplate, error)
- func (comp *Client) DeletePrivateTemplate(ctx context.Context, templateID string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) GetIndustry(ctx context.Context) (*response.ResponseTemplateIndustry, error)
- func (comp *Client) GetPrivateTemplates(ctx context.Context) (*response.ResponseTemplateGetPrivate, error)
- func (comp *Client) Send(ctx context.Context, message *request.RequestTemlateMessage) (*response.ResponseTemplateSend, error)
- func (comp *Client) SendSubscription(ctx context.Context, message *request.RequestTemlateMessageSubscribe) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) SetIndustry(ctx context.Context, industryOne string, industryTwo string, ...) (*response.ResponseTemplateIndustry, error)
Constants ¶
View Source
const API_TEMPLATE_MESSAGE_SEND string = "cgi-bin/message/template/send"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseClient *kernel.BaseClient Message *object.HashMap Required []string }
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) AddTemplate ¶
func (comp *Client) AddTemplate(ctx context.Context, tplIdShort string, keywordNameList []string) (*response.ResponseTemplate, error)
获得模板ID https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
func (*Client) DeletePrivateTemplate ¶
func (comp *Client) DeletePrivateTemplate(ctx context.Context, templateID string) (*response2.ResponseOfficialAccount, error)
删除模板 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
func (*Client) GetIndustry ¶
获取设置的行业信息 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
func (*Client) GetPrivateTemplates ¶
func (comp *Client) GetPrivateTemplates(ctx context.Context) (*response.ResponseTemplateGetPrivate, error)
获取模板列表 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
func (*Client) Send ¶
func (comp *Client) Send(ctx context.Context, message *request.RequestTemlateMessage) (*response.ResponseTemplateSend, error)
func (*Client) SendSubscription ¶
func (comp *Client) SendSubscription(ctx context.Context, message *request.RequestTemlateMessageSubscribe) (*response2.ResponseOfficialAccount, error)
func (*Client) SetIndustry ¶
func (comp *Client) SetIndustry(ctx context.Context, industryOne string, industryTwo string, optional *power.HashMap) (*response.ResponseTemplateIndustry, error)
设置所属行业 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
Click to show internal directories.
Click to hide internal directories.