def test_004_robot(self):
headers = {"Content-Type": "text/plain"}
s="卖品,打印码:{},验证码{}".format({str(printCode)},{str(verifyCode)})
data = {
"msgtype": "text",
"text": {
"content": s,
}
}
r = requests.post(
url='https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=d7786b44-84d3-400a-a018-999999999999',
headers=headers, json=data)
print(r.text)
利用python进行企业微信机器人自动发送消息
最新推荐文章于 2025-04-18 16:22:05 发布