Documentation ¶
Index ¶
- type Client
- func (comp *Client) AddMaterial(options *request.RequestMaterialAddMaterial) (*response.ResponseMaterialAddMaterial, error)
- func (comp *Client) AddNews(options *request.RequestMaterialAddNews) (*response.ResponseMaterialAddNews, error)
- func (comp *Client) BatchGetMaterial(options *request.RequestMaterialBatchGetMaterial) (*response.ResponseMaterialBatchGetMaterial, error)
- func (comp *Client) DelMaterial(mediaID int) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) GetMaterial(mediaID int) (*response.ResponseMaterialGetMaterial, error)
- func (comp *Client) GetMaterialCount() (*response.ResponseMaterialGetMaterialCount, error)
- func (comp *Client) UpdateNews(options *request.RequestMaterialUpdateNews) (*response2.ResponseOfficialAccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*kernel.BaseClient
}
func NewClient ¶
func NewClient(app kernel.ApplicationInterface) *Client
func (*Client) AddMaterial ¶
func (comp *Client) AddMaterial(options *request.RequestMaterialAddMaterial) (*response.ResponseMaterialAddMaterial, error)
新增其他类型永久素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html
func (*Client) AddNews ¶
func (comp *Client) AddNews(options *request.RequestMaterialAddNews) (*response.ResponseMaterialAddNews, error)
新增永久图文素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html
func (*Client) BatchGetMaterial ¶
func (comp *Client) BatchGetMaterial(options *request.RequestMaterialBatchGetMaterial) (*response.ResponseMaterialBatchGetMaterial, error)
获取素材列表 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Get_materials_list.html
func (*Client) DelMaterial ¶
func (comp *Client) DelMaterial(mediaID int) (*response2.ResponseOfficialAccount, error)
删除永久素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Deleting_Permanent_Assets.html
func (*Client) GetMaterial ¶
func (comp *Client) GetMaterial(mediaID int) (*response.ResponseMaterialGetMaterial, error)
获取永久素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Getting_Permanent_Assets.html
func (*Client) GetMaterialCount ¶
func (comp *Client) GetMaterialCount() (*response.ResponseMaterialGetMaterialCount, error)
func (*Client) UpdateNews ¶
func (comp *Client) UpdateNews(options *request.RequestMaterialUpdateNews) (*response2.ResponseOfficialAccount, error)
Click to show internal directories.
Click to hide internal directories.