send dingtalk message to dingding webhook robot
Project description
功能
- 支持所有钉钉消息类型。
- 支持加签的安全设置。
Python版本
Python 3.6+
安装
1. 安装requests
pip install requests
2. 安装该模块
pip install dingtalk-webhook
使用
import dingtalk
access_token = 'xxxxxxx...xxx' # 创建webhook机器人时产生的access_token
secret = 'SECxxxxxxx' # 如果安全设置没有勾选加签,可不用设置该参数
dt = dingtalk.DingTalk(access_token=access_token, secret=secret)
dt.send_text(text='测试消息', at_all=True)
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
dingtalk-webhook-1.1.6.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for dingtalk_webhook-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5339e5f0be273abca9ded0268434110c75733706cc23d2b913fbf28dba3ecf06 |
|
MD5 | 69fc9e4c6f5a793c0dc340d2af755d8c |
|
BLAKE2b-256 | dc89b06fc9dd82a082e5defe8bd0d0fc8abec63f8493a736d25a027c4874fd9c |