A full-stack engineer who is passionate about AI (Machine Learning) and DevOps.
- Google Analytics Individual Qualification certification
DingTalk(dingding) 是钉钉机器人的 go 实现。支持 Docker、Jenkinsfile、命令行模式,module 模式,加签安全设置,支持链式语法创建消息,支持文本、链接、Markdown、ActionCard、FeedCard消息类型; DingTalk (dingding) is the go implementation of the DingTalk robot. Support Docker, Jenkinsfile, command line mode, module mode, signature security settings, chain syntax to create messages, support text, link, markdown,ActionCard,FeedCard message types.
License: MIT License
A full-stack engineer who is passionate about AI (Machine Learning) and DevOps.
`package main
import (
"fmt"
"github.com/CatchZeng/dingtalk/pkg/dingtalk"
)
func main() {
accessToken := "xxxxxxxxxxx"
secret := "xxxxxxxxxxxxxxxxxxxxx0279c94f59fdbc3650"
client := dingtalk.NewClient(accessToken, secret)
msg := dingtalk.NewMarkdownMessage().SetMarkdown("这是TITLE","测试文本").SetAt([]string{"158XXXXX46"}, false)
_, _, _ = client.Send(msg)
}`
dingtalk text -c test -t xxx -m "1xxxx","1xxx"
dingtalk text -c test -t xxx -m "1xxxx" "1xxx"
dingtalk text -c test -t xxx -m ["1xxxx","1xxx"]
dingtalk text -c test -t xxx -m [1xxxx,1xxx]
dingtalk text -c test -t xxx -m "[1xxxx,1xxx]"
以上命令均试过,无法 at 多人,还请说下正确的格式
readme里面,作为module形式的使用方式跟实际用法对不上
是否有支持Drone的计划
我已经事先发送多条推送,已经无法推送了,我想获取返回内容,这样我可以重新加入队列中重新执行。
send message to dingtalk error = send too fast, exceed 20 times per minute
在linux上,我试着获取命令的打印结果,但是获取不到。
result=`dingtalk text -t "1a8d1b0e794546aba9ba38566ca8436bd1eecf79757e72552bde0XXXXX" -c "【通知】test"`
这样也不行
dingtalk text -t "1a8d1b0e794546aba9ba38566ca8436bd1eecf79757e72552bde0XXXXX" -c "【通知】test"
if [ $? -eq 0 ]; then
echo "successfully"
else
echo "failed"
fi
我在命令行里这样写:
dingtalk actionCard -t ${ACCESS_TOKEN} -s ${SECRET} -i xxxxx已部署测试 -b 下载
-c http://172.16.58.16:8001/development/latest.tar.gz -e "# xxxxx已部署 \n\n http:
//baidu.com"
在钉钉里收到的是这样的,并没有换行:
outgoing的机器人的webhook地址与平时的不太一样。
https://oapi.dingtalk.com/robot/sendBySession?session=xxxxxxxxxxxxxxxxxxx
希望有计划可以支持该功能。
failed to read config file: Config File "config" Not Found in "[/root/.dingtalk]"
content can not be empty
markdown -i "title" -e "#### 杭 州天气 \n > 9度"
标题换行都不会显示
看了一圈代码,好像ActionCard不支持at人,钉钉官方文档里是支持的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.