wecom

package
v0.0.0-...-8c01324 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SendMessageURL     = "https://qyapi.weixin.qq.com/cgi-bin/message/send"
	GetAccountTokenURL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken"
	GetUserIdURL       = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserid"

	MessageTextType = "text"
)

Variables

This section is empty.

Functions

func GetAccountToken

func GetAccountToken() (at string, err error)

GetAccountToken @Description: get wecom account token @return err

func GetWeComUserId

func GetWeComUserId(mobile string) (result string, err error)

Types

type Interface

type Interface interface {
	Send(content map[string]interface{}) (result map[string]interface{}, err error)
}

func New

func New(agentId int, options map[string]interface{}) Interface

Jump to

Keyboard shortcuts

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