api

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMarkdown added in v0.0.5

func NewMarkdown(opts *MsgOpts) *markdownMsg

markdown消息

func NewMpNews added in v0.0.2

func NewMpNews(opts *MsgOpts) *mpNewsMsg

图文消息(mpnews)

func NewText added in v0.0.2

func NewText(opts *MsgOpts) *textMsg

文本消息

func Send added in v0.0.2

func Send(msg AppMsg, at *AccessToken) error

Types

type AccessToken

type AccessToken struct {
	CorpId     string
	CorpSecret string
	// contains filtered or unexported fields
}

func (*AccessToken) GetToken

func (at *AccessToken) GetToken(isGetNew bool) (string, error)

type AppMsg added in v0.0.2

type AppMsg interface {
	// contains filtered or unexported methods
}

type MsgOpts added in v0.0.3

type MsgOpts struct {
	ToUser                 string
	ToParty                string
	ToTag                  string
	Title                  string
	Content                string
	AgentId                int64
	MediaId                string
	EnableDuplicateCheck   int
	DuplicateCheckInterval int
}

Jump to

Keyboard shortcuts

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