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.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

dingtalk_api-0.0.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file dingtalk-api-0.0.2.tar.gz.

File metadata

  • Download URL: dingtalk-api-0.0.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for dingtalk-api-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b25a5e45b6e347b7c4dfce448bb09e3b4973d1ec6d9a0fb3c192554e301a01f3
MD5 a6bf4f25756d84f9faeea5d5497d7c8b
BLAKE2b-256 ae0fea0ebd3b78fe2ad08ac589b64600997e3f312f866504f0ef249b7744ec2e

See more details on using hashes here.

File details

Details for the file dingtalk_api-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dingtalk_api-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for dingtalk_api-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee802e4690a7ffdae5e13d57e2e93115dfa4134b00af68031fc4c53bc1177a6b
MD5 a57b7fbd1e9a275cf1193acd30103de1
BLAKE2b-256 8aef24bad07319372cd63410b16060bf68fdc78561fce6a59aad104fdf0dce81

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