Skip to main content

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 details)

Uploaded Source

Built Distribution

dingtalk_webhook-1.1.6-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for dingtalk-webhook-1.1.6.tar.gz
Algorithm Hash digest
SHA256 f119703412d07463b7c5443b4671304026e9ba66b24d24b5bb39f219fc78cda6
MD5 b1202f3e404d9a9faf928aa31e2c4fed
BLAKE2b-256 0291cd6e0c0a052b5d731829c6ff79737a8a302995be26e2021093c222d8091a

See more details on using hashes here.

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

Hashes for dingtalk_webhook-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5339e5f0be273abca9ded0268434110c75733706cc23d2b913fbf28dba3ecf06
MD5 69fc9e4c6f5a793c0dc340d2af755d8c
BLAKE2b-256 dc89b06fc9dd82a082e5defe8bd0d0fc8abec63f8493a736d25a027c4874fd9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page