dingtalk-lite-1.0.2
توضیحات
Lite SDK for Dingtalk
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dingtalk-lite-1.0.2 |
| نام | dingtalk-lite |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Seamus |
| ایمیل نویسنده | seamusmore@163.com |
| آدرس صفحه اصلی | http://example.com |
| آدرس اینترنتی | https://pypi.org/project/dingtalk-lite/ |
| مجوز | MIT |
#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
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
نحوه نصب
نصب پکیج whl dingtalk-lite-1.0.2:
pip install dingtalk-lite-1.0.2.whl
نصب پکیج tar.gz dingtalk-lite-1.0.2:
pip install dingtalk-lite-1.0.2.tar.gz