material

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UploadImgURL 上传图片
	UploadImgURL = "https://qyapi.weixin.qq.com/cgi-bin/media/uploadimg?access_token=%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*context.Context
}

Client 素材管理接口实例

func NewClient

func NewClient(ctx *context.Context) *Client

NewClient 初始化实例

func (*Client) UploadImg

func (r *Client) UploadImg(filename string) (*UploadImgResponse, error)

UploadImg 上传图片 @see https://developer.work.weixin.qq.com/document/path/90256

type UploadImgResponse

type UploadImgResponse struct {
	util.CommonError
	URL string `json:"url"`
}

UploadImgResponse 上传图片响应

Jump to

Keyboard shortcuts

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