Metadata-Version: 2.1
Name: idingtalk
Version: 0.0.5
Summary: Dingtalk tools.
Home-page: https://pypi.org/project/idingtalk/
Author: teachmyself
Author-email: teachmyself@126.com
License: MIT
Keywords: idingtalk,Dingding,DingTalk,incoming
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Description-Content-Type: text/markdown
Requires-Dist: requests

# 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"])
```


