A pypi package to send message in different mediums.
-
import
from PlanetLink.wxBot import wxBot
-
define veriables
corpid = 'xxxxxxxxxx' corpsecret = 'xxxxxxxxxxxxxxxxxxxxxx' agentid = 'xxxxxx' title = 'title' sign = 'sign'
-
initial
bot = wxBot() bot.initBot(corpid,corpsecret,agentid,title,sign)
-
add content to wxMessageDemo
bot.addContent("title: 'test1'\nvalue: 'val1'") bot.addContent("title: 'test2'\nvalue: 'val2'")
-
send
bot.send()
-
get message
Message: ⛔ title [2023-11-16 16:59:17] ======================== title: 'test1' value: 'val1' ------------------------------------- title: 'test2' value: 'val2' -------------------------------------
sign | symbol |
---|---|
WARNING | |
ERROR | ❌ |
COMPLETE | ✅ |
INFO | ℹ️ |
ELSE | ⛔ |
-
release pypi package - add return value and error log
- add list form of message
- [20220924] first version of weChat message send API
- [20231116] rebuild code and release the first pypi package
- [20231119] add clearContent and getSendContent function
0.0.1
: first version of PlanetLink0.0.2
: add clearContent and getSendContent function