Lite SDK for Dingtalk
Project description
#Dingtalk lite SDK ##A lite Dingtalk SDK to simplify sending message #Example ###To send a message with markdown format:
text = "### I am the header\n" + \
"#### This is a test message, do not worry.\n" + \
"\n" + \
"1. This is the first line\n" + \
"2. This is the second line\n"
token = 'your-dingtalk-robot-token'
client = Client("https://oapi.dingtalk.com/robot/send")
response = client.send_markdown(token, '[Ambari Alert]', text)
###If you want to @ somebody:
token = 'your-dingtalk-robot-token'
client = Client("https://oapi.dingtalk.com/robot/send")
at_mobiles = ['185xxxxxxxx', '137xxxxxxxx']
response = client.send_text(token, "[Ambari Alert] This is a test message, do not worry.", at_mobiles)
###See client_test.py to get more usages
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dingtalk_lite-1.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: dingtalk_lite-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff81a5012d86fc234e9284822e48544d1081236d20ace6db18a19748e5f98810
|
|
| MD5 |
7c96413de8dfb14508fe6705450c703c
|
|
| BLAKE2b-256 |
373ebb11a848e5fbb7d7293018c3ff4a4fd662c9acdc8e5f8e7c7271dead9efa
|