This is a package for sending messages to enterprise WeChat applications in zabbix
Project description
This is a package for sending messages to enterprise WeChat applications in zabbix. You can use Github
View at:
https://pypi.org/project/ZabbixQywechat/1.0.4/
pip install ZabbixQywechat
Demo test
vim test.py
from ZabbixQywechat import Qywechat
import sys
Agentid="1000002"
Corpid="1111"
Corpsecret="2222"
PATH="/tmp/test.json"
if __name__ == '__main__':
Touser=sys.argv[1]
Subject=str(sys.argv[2])
Content=str(sys.argv[3])
Result=Qywechat(Agentid,Corpid,Corpsecret,PATH)
Result.SendMSGtoWechat(Touser,Subject,Content)
python test.py WechatAccount title content
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ZabbixQywechat-1.0.4.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for ZabbixQywechat-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec607643ef4a00d19975da4836db51615aa0e1e6a8f49025214d71cf64c3a281 |
|
MD5 | 53574e4d348095ba14756a50eb56782a |
|
BLAKE2b-256 | d8f0aa71a7d066055b7e9042b6ea94c4db9823d1158eadd3b98548628e1cedb5 |