Skip to main content

ding ding robot

Project description

在线安装

pip install git+https://github.com/Twotiger/dingding.git

例子

from dingding import DingDing
access_token="xxxxxxxxxxxxxxxxxxxxxxxxxx"
ding = DingDing(access_token)
# @所有人
ding.send_text('hello', at_all=True)

# @手机号为1333333333的人
ding.send_text('hello', ['13333333333'])

ding.send_link('title', 'text', 'message_url')

ding.send_markdown('title', 'text')

ding.send_action_card('title', 'text', [('title1', 'url1'), ('title2', 'url2')])

ding.send_text('我就是我, 是不一样的烟火', ['13333333333'])

ding.send_link('时代的火车向前开', '这个即将发布的新版本,创始人陈航(花名“无招”)称它为“红树林”。 而在此之前,每当面临重大升级,产品经理们都会取一个应景的代号,这一次,为什么是“红
    树林”?', 'https://mp.weixin.qq.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI')

ding.send_feed_card([('学vue','https://cn.vuejs.org/','https://cn.vuejs.org/images/logo.png'),
                     ('哪家强', 'https://cn.vuejs.org/', 'https://cn.vuejs.org/images/logo.png')])

返回结果

如果发送正常

{'errcode': 0, 'errmsg': 'ok'}

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

dingding-0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dingding-0.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file dingding-0.3.tar.gz.

File metadata

  • Download URL: dingding-0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for dingding-0.3.tar.gz
Algorithm Hash digest
SHA256 65350ff4d9fbab5422e2e7d7d6eea9d7b40ef4e544bc686f71318a7818782819
MD5 9499367cb254296d2238831febf3caa0
BLAKE2b-256 7993e09d7adc61eb7f2811b8e457960ab5af86ccadbf21fdc33f2c07e1bf4148

See more details on using hashes here.

File details

Details for the file dingding-0.3-py3-none-any.whl.

File metadata

  • Download URL: dingding-0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for dingding-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d494dd171ded208de46c7fc667ee65bb02f62a827d89262aee522b263ea2c5da
MD5 c9b2faf6d8953cf03c4cb2d7d90ce291
BLAKE2b-256 13e072ee3d4faa292baf3d3a623bbedee0f114c2e193d62094e12acbf1fa4c83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page