Documentation ¶
Index ¶
- Constants
- type Client
- func (comp *Client) AddTemplate(industryOne string) (*response.ResponseTemplate, error)
- func (comp *Client) DeletePrivateTemplate(templateID string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) GetIndustry() (*response.ResponseTemplateIndustry, error)
- func (comp *Client) GetPrivateTemplates() (*response.ResponseTemplateGetPrivate, error)
- func (comp *Client) Send(message *request.RequestTemlateMessage) (*response.ResponseTemplateSend, error)
- func (comp *Client) SendSubscription(message *request.RequestTemlateMessageSubscribe) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) SetIndustry(industryOne string, industryTwo string, optional *power.HashMap) (*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 { *kernel.BaseClient Message *object.HashMap Required []string }
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) AddTemplate ¶
func (comp *Client) AddTemplate(industryOne 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(templateID string) (*response2.ResponseOfficialAccount, error)
删除模板 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
func (*Client) GetIndustry ¶
func (comp *Client) GetIndustry() (*response.ResponseTemplateIndustry, error)
获取设置的行业信息 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
func (*Client) GetPrivateTemplates ¶
func (comp *Client) GetPrivateTemplates() (*response.ResponseTemplateGetPrivate, error)
获取模板列表 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
func (*Client) Send ¶
func (comp *Client) Send(message *request.RequestTemlateMessage) (*response.ResponseTemplateSend, error)
func (*Client) SendSubscription ¶
func (comp *Client) SendSubscription(message *request.RequestTemlateMessageSubscribe) (*response2.ResponseOfficialAccount, error)
func (*Client) SetIndustry ¶
func (comp *Client) SetIndustry(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.