wechat

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get_token

func Get_token(corpid, corpsecret string) (at access_token, err error)

通过corpid 和 corpsecret 获取token

func Parse

func Parse(jsonpath string) ([]byte, error)

func SendWechatMsg

func SendWechatMsg(content string, tousers []string, agentid int, corpid string, corpsecret string)
Example
//将微信配置写到nacos,通过读取相关配置来发送微信
SendWechatMsg("要发送的内容", []string{"dingyz", "xxxx"}, 1111, "xxx", "xxx")
Output:

func SendWechatMsgToOne

func SendWechatMsgToOne(content string, touser string, agentid int, corpid string, corpsecret string)

发送给一个人

func Send_msg

func Send_msg(Access_token string, msgbody []byte) error

发送消息.msgbody 必须是 API支持的类型

Types

This section is empty.

Jump to

Keyboard shortcuts

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