Documentation ¶
Index ¶
- type Client
- func (comp *Client) Delete(mediaID int) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) Get(mediaID string) (contract.ResponseInterface, error)
- func (comp *Client) GetNews(mediaID string) (*response.ResponseMaterialGetNews, error)
- func (comp *Client) GetVideo(mediaID string) (*response.ResponseMaterialGetVideo, error)
- func (comp *Client) List(options *request2.RequestMaterialBatchGetMaterial) (*response.ResponseMaterialBatchGetMaterial, error)
- func (comp *Client) Stats() (*response.ResponseMaterialGetMaterialCount, error)
- func (comp *Client) UpdateArticle(mediaID string, articles request2.RequestAddArticles, index int) (response.ResponseMaterialAddNews, error)
- func (comp *Client) Upload(Type string, path string, query *object.StringMap, result interface{}) (interface{}, error)
- func (comp *Client) UploadArticle(articles request2.RequestAddArticles) (*response.ResponseMaterialAddNews, error)
- func (comp *Client) UploadArticleImage(path string) (*response.ResponseMaterialAddMaterial, error)
- func (comp *Client) UploadImage(path string) (*response.ResponseMaterialAddMaterial, error)
- func (comp *Client) UploadThumb(path string) (*response.ResponseMaterialAddMaterial, error)
- func (comp *Client) UploadVideo(path string, title string, description string) (*response.ResponseMaterialAddMaterial, error)
- func (comp *Client) UploadVoice(path string) (*response.ResponseMaterialAddMaterial, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *kernel.BaseClient AllowTypes []string }
func NewClient ¶
func NewClient(app kernel.ApplicationInterface) *Client
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) *Client
func (*Client) Delete ¶
func (comp *Client) Delete(mediaID int) (*response2.ResponseOfficialAccount, error)
删除永久素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Deleting_Permanent_Assets.html
func (*Client) Get ¶
func (comp *Client) Get(mediaID string) (contract.ResponseInterface, error)
获取永久素材图片 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Getting_Permanent_Assets.html
func (*Client) GetNews ¶
func (comp *Client) GetNews(mediaID string) (*response.ResponseMaterialGetNews, error)
获取永久图文素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Getting_Permanent_Assets.html
func (*Client) GetVideo ¶
func (comp *Client) GetVideo(mediaID string) (*response.ResponseMaterialGetVideo, error)
获取永久视频消息素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Getting_Permanent_Assets.html
func (*Client) List ¶
func (comp *Client) List(options *request2.RequestMaterialBatchGetMaterial) (*response.ResponseMaterialBatchGetMaterial, error)
获取素材列表 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Get_materials_list.html
func (*Client) Stats ¶
func (comp *Client) Stats() (*response.ResponseMaterialGetMaterialCount, error)
func (*Client) UpdateArticle ¶
func (comp *Client) UpdateArticle(mediaID string, articles request2.RequestAddArticles, index int) (response.ResponseMaterialAddNews, error)
func (*Client) UploadArticle ¶
func (comp *Client) UploadArticle(articles request2.RequestAddArticles) (*response.ResponseMaterialAddNews, error)
func (*Client) UploadArticleImage ¶
func (comp *Client) UploadArticleImage(path string) (*response.ResponseMaterialAddMaterial, error)
上传图文消息内的图片获取URL https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html
func (*Client) UploadImage ¶
func (comp *Client) UploadImage(path string) (*response.ResponseMaterialAddMaterial, error)
上传永久图片素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html
func (*Client) UploadThumb ¶
func (comp *Client) UploadThumb(path string) (*response.ResponseMaterialAddMaterial, error)
上传永久缩略图素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html
func (*Client) UploadVideo ¶
func (comp *Client) UploadVideo(path string, title string, description string) (*response.ResponseMaterialAddMaterial, error)
上传永久视频素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html
func (*Client) UploadVoice ¶
func (comp *Client) UploadVoice(path string) (*response.ResponseMaterialAddMaterial, error)
上传永久语音素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html