Documentation ¶
Index ¶
- func RegisterProvider(app kernel.ApplicationInterface) (*Client, *Account, error)
- type Account
- func (comp *Account) CreateFromDraft(draftID int, templateType int) (*response2.ResponseOpenPlatform, error)
- func (comp *Account) Delete(templateID string) (*response2.ResponseOpenPlatform, error)
- func (comp *Account) GetDrafts() (*response.ResponseGetDrafts, error)
- func (comp *Account) List() (*response.ResponseList, error)
- type Client
- func (comp *Client) CreateFromDraft(draftID int, templateType int) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) Delete(templateID string) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) GetDrafts() (*response.ResponseGetDrafts, error)
- func (comp *Client) List() (*response.ResponseList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, *Account, error)
Types ¶
type Account ¶
type Account struct {
*kernel.BaseClient
}
func NewAccount ¶
func NewAccount(app *kernel.ApplicationInterface) (*Account, error)
func (*Account) CreateFromDraft ¶
func (comp *Account) CreateFromDraft(draftID int, templateType int) (*response2.ResponseOpenPlatform, error)
将草稿添加到代码模板库 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/addtotemplate.html#请求地址
func (*Account) Delete ¶
func (comp *Account) Delete(templateID string) (*response2.ResponseOpenPlatform, error)
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func (*Client) CreateFromDraft ¶
func (comp *Client) CreateFromDraft(draftID int, templateType int) (*response2.ResponseOpenPlatform, error)
将草稿添加到代码模板库 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/addtotemplate.html#请求地址
func (*Client) Delete ¶
func (comp *Client) Delete(templateID string) (*response2.ResponseOpenPlatform, error)
Click to show internal directories.
Click to hide internal directories.