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, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadImage(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadImage, error)
- func (comp *Client) UploadMedia(ctx context.Context, attachmentType string, mediaType string, path string, ...) (*response2.ResponseUploadMediaData, error)
- func (comp *Client) UploadMediaImage(ctx context.Context, attachmentType string, path string, form *power.HashMap) (*response2.ResponseUploadMediaData, error)
- func (comp *Client) UploadMediaImageUrl(ctx context.Context, attachmentType string, url string, form *power.HashMap) (*response2.ResponseUploadMediaData, error)
- func (comp *Client) UploadMediaVideo(ctx context.Context, attachmentType string, path string, form *power.HashMap) (*response2.ResponseUploadMediaData, error)
- func (comp *Client) UploadMediaVideoUrl(ctx context.Context, attachmentType string, url string, form *power.HashMap) (*response2.ResponseUploadMediaData, error)
- func (comp *Client) UploadTempFile(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempFileUrl(ctx context.Context, url string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempImage(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempImageUrl(ctx context.Context, url string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempVideo(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempVideoUrl(ctx context.Context, url string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempVoice(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempVoiceUrl(ctx context.Context, url string, form *power.HashMap) (*response2.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
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) Get ¶
获取临时素材 https://developer.work.weixin.qq.com/document/path/90254
func (*Client) GetJSSDK ¶
获取高清语音素材 https://developer.work.weixin.qq.com/document/path/90255
func (*Client) Upload ¶
func (comp *Client) Upload(ctx context.Context, mediaType string, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
上传临时素材 https://developer.work.weixin.qq.com/document/path/90253
func (*Client) UploadImage ¶
func (comp *Client) UploadImage(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadImage, error)
上传图片 https://developer.work.weixin.qq.com/document/path/90256
func (*Client) UploadMedia ¶ added in v3.2.53
func (comp *Client) UploadMedia(ctx context.Context, attachmentType string, mediaType string, path string, form *power.HashMap) (*response2.ResponseUploadMediaData, error)
上传附件资源 https://developer.work.weixin.qq.com/document/path/95178
func (*Client) UploadMediaImage ¶ added in v3.2.53
func (*Client) UploadMediaImageUrl ¶ added in v3.2.53
func (*Client) UploadMediaVideo ¶ added in v3.2.53
func (*Client) UploadMediaVideoUrl ¶ added in v3.2.53
func (*Client) UploadTempFile ¶
func (*Client) UploadTempFileUrl ¶ added in v3.2.52
func (*Client) UploadTempImage ¶
func (*Client) UploadTempImageUrl ¶ added in v3.2.52
func (*Client) UploadTempVideo ¶
func (*Client) UploadTempVideoUrl ¶ added in v3.2.52
func (*Client) UploadTempVoice ¶
Click to show internal directories.
Click to hide internal directories.