



理想是火,点燃熄灭的灯。



首先手机下载企业微信(个人)
然后注册登录巴啦啦拉的
创建群聊
添加机器人
查看复制webhook url
查看请求文档
发送简单的text类型 如下:
消息推送请求:
const axios = require("axios");
const url =
"webhookAPIURLxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
const data = {
msgtype: "text",
text: {
content: "你好 这个企业微信的bot推送挺好用的!以后可以在不同的场景使用啦!",
},
};
const headers = {
"Content-Type": "application/json",
};
axios
.post(url, data, { headers })
.then((response) => {
console.log("Response:", response.data);
})
.catch((error) => {
console.error("Error:", error);
});
作者: Bill 本文地址: http://biaoblog.cn/info?id=1692783643715
版权声明: 本文为原创文章,版权归 biaoblog 个人博客 所有,欢迎分享本文,转载请保留出处,谢谢!