Documentation ¶
Index ¶
- type Client
- func (comp *Client) Get(ctx context.Context, mediaID string) (*http.Response, error)
- func (comp *Client) GetJSSDK(ctx context.Context, mediaID string) (*http.Response, error)
- func (comp *Client) Upload(ctx context.Context, mediaType string, path string) (*response.ResponseUploadMedia, error)
- func (comp *Client) UploadImage(ctx context.Context, path string) (*response.ResponseUploadMedia, error)
- func (comp *Client) UploadThumb(ctx context.Context, path string) (*response.ResponseUploadMedia, error)
- func (comp *Client) UploadVideo(ctx context.Context, path string) (*response.ResponseUploadMedia, error)
- func (comp *Client) UploadVoice(ctx context.Context, path string) (*response.ResponseUploadMedia, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseClient *kernel.BaseClient AllowTypes []string }
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) GetJSSDK ¶
获取高清语音素材 https://work.weixin.qq.com/api/doc/90000/90135/90255
func (*Client) Upload ¶
func (comp *Client) Upload(ctx context.Context, mediaType string, path string) (*response.ResponseUploadMedia, error)
上传临时素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html
func (*Client) UploadImage ¶
func (comp *Client) UploadImage(ctx context.Context, path string) (*response.ResponseUploadMedia, error)
新增临时素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html
func (*Client) UploadThumb ¶
func (*Client) UploadVideo ¶
func (*Client) UploadVoice ¶
Click to show internal directories.
Click to hide internal directories.