ding

package
v0.0.0-...-3590adc Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const WebHook = "https://oapi.dingtalk.com/robot/send?access_token="

Variables

This section is empty.

Functions

func SendMsg

func SendMsg(msg, token string, at ...string) error

* 发送@一个或多个人的机器人消息 params:

msg      : string          发送通知的内容
token	 : string          机器人对应的webhook地址中的token
at		 : ...string	   需要@的人的手机号

func SendMsgAll

func SendMsgAll(msg, token string) error

* 发送@所有人的机器人消息 params:

msg		: string 	发送通知的内容
token	: string 	机器人对应的webhook地址中的token

Types

This section is empty.

Jump to

Keyboard shortcuts

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