钉钉服务端 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
Release history Release notifications | RSS feed
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.3.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dingtalk-api-0.0.3.tar.gz.
File metadata
- Download URL: dingtalk-api-0.0.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b0d6ba625f3a1e6c714f9ea80480cbf9c8de961de24a61acf6c41428693b523
|
|
| MD5 |
829bf84da0dbe200576c8213c2fe627a
|
|
| BLAKE2b-256 |
62f57722e32aa52c0bd733a4f5d10c0cceb1d754b9ae9b08831e03bd4abe6f92
|
File details
Details for the file dingtalk_api-0.0.3-py3-none-any.whl.
File metadata
- Download URL: dingtalk_api-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea96ff2d8bfd9654a59d4ee5beec5f510c61021ff4918d6a152a2e5984901209
|
|
| MD5 |
107e572393ce07b7cd61434a0fabc983
|
|
| BLAKE2b-256 |
accad0a67c6c39b6c72438dd929a2e3a00a4a47b4c129166ea53a7b08d151d1a
|