chatops学习-2

创建管理员账号

访问192.168.1.35:8065
得到如下页面


image.png

下载app

此处介绍mac,打开app


image.png

选择


image.png

输如如下,点击add,双击test就可以连接server了


image.png

出现如下页面


image.png

输入刚才填写的admin邮箱和名字密码,接着就可以进入

点击


image.png

得到如下页面


image.png

复制连接给其他人,就可以完成邀请注册

尝试聊天


image.png

添加 incoming webhook

点击


image.png

curl -i -X POST -H 'Content-Type: application/json' -d '{"text": "Hello, this is some text\nThis is more text. :tada:"}' http://192.168.1.35:8065/hooks/ay43fqzrejge3kxuj6g4mprt4r

点击


image.png

点击


image.png

填写


image.png

获得如下页面


image.png

复制得到的链接
执行

curl -i -X POST -H 'Content-Type: application/json' -d '{"text": "Hello, this is some text\nThis is more text. :tada:"}' http://192.168.1.35:8065/hooks/rgndpdmqu7fd9ef7fn5oqxeqkc

得到如下聊天信息


image.png

修改webhook消息显示的名字


image.png
image.png

执行

curl -i -X POST -H 'Content-Type: application/json' -d '{"text": "Hello, this is some text\nThis is more text. :tada:","username":"automation"}' http://192.168.1.35:8065/hooks/rgndpdmqu7fd9ef7fn5oqxeqkc

得到如下


image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容