Documentation ¶
Index ¶
- Constants
- func RobotUrl(accessToken, secret string) (string, error)
- func SendRobotMarkDownMessage(token, title, content string) error
- func SendRobotMarkDownMessageWithSecret(token, secret, title, content string) error
- func SendRobotMessage(accessToken, secret, title, content string, msgType MsgType) error
- func SendRobotTextMessage(accessToken string, content string) error
- func SendRobotTextMessageWithSecret(accessToken, secret, content string) error
- type ActionCard
- type At
- type DingMsg
- type FeedCard
- type Link
- type MsgType
- type RobotConfig
- type Text
Constants ¶
View Source
const ( MsgTypeTextTmpl = `{"msgtype":"text","text":{"content":"%s"}}` MsgTypeMarkdownTmpl = `{"msgtype":"markdown","markdown":{"title":"%s","text":"%s"}}` MsgTypeMarkdownAtTmpl = `{"msgtype":"markdown","markdown":{"title":"%s","text":"%s"},"at":{"isAtAll": false, "atMobiles":[]}}` )
View Source
const ( //VERSION is SDK version VERSION = "0.1" //ROOT is the root url ROOT = "https://oapi.dingtalk.com/" )
Variables ¶
This section is empty.
Functions ¶
func SendRobotMessage ¶
func SendRobotTextMessage ¶
SendRobotTextMessage can send a text message to a group chat
Types ¶
type ActionCard ¶
type MsgType ¶
type MsgType int
const ( MsgTypeText MsgType MsgTypeMarkdown MsgTypeLink MsgTypeActionCard MsgTypeFeedCard )
type RobotConfig ¶
Click to show internal directories.
Click to hide internal directories.