Documentation ¶
Index ¶
- type Client
- func (comp *Client) Get(mediaID string) (contract.ResponseInterface, error)
- func (comp *Client) GetJSSDK(mediaID string) (contract.ResponseInterface, error)
- func (comp *Client) Upload(mediaType string, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadImage(path string, form *power.HashMap) (*response2.ResponseUploadImage, error)
- func (comp *Client) UploadTempFile(path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempImage(path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempVideo(path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)
- func (comp *Client) UploadTempVoice(path 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 {
*kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) Get ¶
func (comp *Client) Get(mediaID string) (contract.ResponseInterface, error)
获取临时素材 https://developer.work.weixin.qq.com/document/path/90254
func (*Client) GetJSSDK ¶
func (comp *Client) GetJSSDK(mediaID string) (contract.ResponseInterface, error)
获取高清语音素材 https://developer.work.weixin.qq.com/document/path/90255
func (*Client) Upload ¶
func (comp *Client) Upload(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(path string, form *power.HashMap) (*response2.ResponseUploadImage, error)
上传图片 https://developer.work.weixin.qq.com/document/path/90256
func (*Client) UploadTempFile ¶
func (*Client) UploadTempImage ¶
func (*Client) UploadTempVideo ¶
func (*Client) UploadTempVoice ¶
Click to show internal directories.
Click to hide internal directories.