media

package
v3.2.16 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 8 Imported by: 2

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

	AllowTypes []string
}

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://work.weixin.qq.com/api/doc/90000/90135/90254

func (*Client) GetJSSDK

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

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

func (*Client) UploadThumb

func (comp *Client) UploadThumb(ctx context.Context, path string) (*response.ResponseUploadMedia, error)

func (*Client) UploadVideo

func (comp *Client) UploadVideo(ctx context.Context, path string) (*response.ResponseUploadMedia, error)

func (*Client) UploadVoice

func (comp *Client) UploadVoice(ctx context.Context, path string) (*response.ResponseUploadMedia, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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