WxPusher (微信推送服务)是一个使用微信公众号作为通道的,实时信息推送平台,你可以通过调用API的方式,把信息推送到微信上,无需安装额外的软件,即可做到信息实时通知。 你可以使用WxPusher来做服务器报警通知、抢课通知、抢票通知,信息更新提示等
目前支持推送到:邮箱、微信、Discord、Telegram、飞书群、企业微信群、钉钉群以及自定义Webhook
注册应用获取
APP_TOKEN
UID
即可通过web API或python API SDK向用户发送消息
def wxPusher_send_messaget_post(message):
import requests
import json
app_token = 'xxx'
UID = 'xxx'
data = {
"appToken": app_token,
"content": message,
"summary": message,
"contentType": 1,
"topicIds": [
123
],
"uids": [
UID
],
"url": "https://wxpusher.zjiecode.com",
"verifyPay": False
}
json_data = json.dumps(data)
url= "https://wxpusher.zjiecode.com/api/send/message"
headers = {
'Content-Type': "application/json",
}
request = requests.post(url,data=json_data,headers=headers)
print("request:", request)
return request
wxPusher_send_messaget_post('好的')