media

package
v3.0.0-...-7300911 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 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 {
	BaseClient *kernel.BaseClient
}

func NewClient

func NewClient(app kernel.ApplicationInterface) (*Client, error)

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)

func (*Client) Get

func (comp *Client) Get(ctx context.Context, mediaID string) (*http.Response, error)

获取临时素材 https://developer.work.weixin.qq.com/document/path/90254

func (*Client) GetJSSDK

func (comp *Client) GetJSSDK(ctx context.Context, mediaID string) (*http.Response, error)

获取高清语音素材 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) UploadTempFile

func (comp *Client) UploadTempFile(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)

func (*Client) UploadTempImage

func (comp *Client) UploadTempImage(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)

func (*Client) UploadTempVideo

func (comp *Client) UploadTempVideo(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)

func (*Client) UploadTempVoice

func (comp *Client) UploadTempVoice(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseUploadMedia, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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