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

你可能感兴趣的:(chatops学习-2)