Skip to main content

钉钉服务端 API

Project description

钉钉服务端 API

特点

  • 兼容新旧 SDK
  • 采用与官方文档相同的组织结构
  • 丰富的注释和类型标注
  • Pydantic 集成

安装

pip install dingtalk-api

使用

from dingtalk_api import ApiClient

client = ApiClient(
    CLIENT_ID,
    CLIENT_SECRET,
)

# 查询用户详情 旧版SDK
resp = client.contact.user.queryDetails(userid)
print(resp.model_dump())

# 下载机器人接收消息的文件内容 新版SDK
resp = client.im.robot.downloadMessageFiles(downloadCode, ROBOT_CODE)
print(resp.model_dump())

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

dingtalk-api-0.0.4.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

dingtalk_api-0.0.4-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

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