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
Built Distribution
File details
Details for the file dingtalk-webhook-1.1.6.tar.gz
.
File metadata
- Download URL: dingtalk-webhook-1.1.6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f119703412d07463b7c5443b4671304026e9ba66b24d24b5bb39f219fc78cda6 |
|
MD5 | b1202f3e404d9a9faf928aa31e2c4fed |
|
BLAKE2b-256 | 0291cd6e0c0a052b5d731829c6ff79737a8a302995be26e2021093c222d8091a |
File details
Details for the file dingtalk_webhook-1.1.6-py3-none-any.whl
.
File metadata
- Download URL: dingtalk_webhook-1.1.6-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5339e5f0be273abca9ded0268434110c75733706cc23d2b913fbf28dba3ecf06 |
|
MD5 | 69fc9e4c6f5a793c0dc340d2af755d8c |
|
BLAKE2b-256 | dc89b06fc9dd82a082e5defe8bd0d0fc8abec63f8493a736d25a027c4874fd9c |