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进行企业微信机器人自动发送消息

利用python进行企业微信机器人自动发送消息

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-09-21
  • 2022-12-23
  • 2021-12-23
  • 2021-11-18
猜你喜欢
  • 2021-07-03
  • 2021-12-05
  • 2021-12-31
  • 2022-01-20
  • 2022-12-23
相关资源
相似解决方案