Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Dingtalk tools.

Project description

idingtalk

Tools package for dingtalk.

install

pip install idingtalk

demo

from idingtalk import dingtalk_incoming

token = ""

dingtalk_incoming(
    token, 
    title="This is title",
    text=["# This is title", "> This is first line.", "> This is second line."],
    at_mobiles=["18600000000"],
    at_all=False
)

# or


payload = {
    "msgtype" : "markdown",
    "markdown": {
        "title": "This is push title!",
        "text" : "\n\n".join([
            "# This is text title.",
            "> This is first line.",
            "> This is second line.",
            ])
    },
    "at" : {
        "atMobiles": ["18600000000"],
        "isAll": False
    }
}
dingtalk_incoming(token, payload=payload, at_mobiles=["18600000000"])

Project details


Release history Release notifications

This version

0.0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for idingtalk, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size idingtalk-0.0.5-py2-none-any.whl (3.9 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size idingtalk-0.0.5.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page