Skip to main content

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


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
Filename, size idingtalk-0.0.5.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page