# message_notice **Repository Path**: Jruing/message_notice ## Basic Information - **Project Name**: message_notice - **Description**: 消息通知api: 钉钉 企业微信群机器人等 - **Primary Language**: Python - **License**: Unlicense - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2021-11-19 - **Last Updated**: 2023-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 消息通知 ## 介绍 > 这是一个Python版本消息通知的工具,工具类中包含了多种渠道消息方式(基于第三方,如钉钉,企业微信等) ## 软件架构 本工具类目前包含以下方式: * Webhook * 钉钉群机器人 * 企业微信机器人 * wxpusher公众号推送 通知方式将会持续更新 ## 安装教程 下载dist中的`message_tools-*.tar.gz`, 使用 `pip install message_tools-*.tar.gz` ## 使用说明 ### 钉钉机器人 ``` from webhook.DingTalkAPI import DingTalkApi dd = DingTalkApi('', '') dd.send_msg('__str__') dd.send_msg('send_text_msg', content="hello world@13888888888", atMobiles=['13888888888']) ``` ### 企业微信机器人 ``` from webhook.WeWrokAPI import WeWorkAPI vxbot = WeWorkAPI("") vxbot.send_text_msg("hello world") ``` ### wxpusher ``` from webhook.WxpusherAPI import WxPusher wxpuser = WxPusher("") wxpuser.send_msg("diyi", [9394], ["UID_jeGcoGcRWeZ6i1QLEYAQl0KHwDA7"], "https://www.baidu.com",summary='') ```