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.

Source Distribution

idingtalk-0.0.5.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

idingtalk-0.0.5-py2-none-any.whl (3.9 kB view hashes)

Uploaded py2

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