media

package
v1.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) *Client

func (*Client) Get

func (comp *Client) Get(mediaID string) (contract.ResponseInterface, error)

获取临时素材 https://work.weixin.qq.com/api/doc/90000/90135/90254

func (*Client) GetJSSDK

func (comp *Client) GetJSSDK(mediaID string) (contract.ResponseInterface, error)

获取高清语音素材 https://work.weixin.qq.com/api/doc/90000/90135/90255

func (*Client) Upload

func (comp *Client) Upload(mediaType string, path string, form *power.HashMap) (*response.ResponseUploadMedia, error)

上传临时素材 https://work.weixin.qq.com/api/doc/90000/90135/90253

func (*Client) UploadTempImage

func (comp *Client) UploadTempImage(path string, form *power.HashMap) (*response.ResponseUploadMedia, error)

func (*Client) UploadTempVideo

func (comp *Client) UploadTempVideo(path string, form *power.HashMap) (*response.ResponseUploadMedia, error)

func (*Client) UploadTempVoice

func (comp *Client) UploadTempVoice(path string, form *power.HashMap) (*response.ResponseUploadMedia, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL