钉钉服务端 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())
Release files for dingtalk-api 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dingtalk-api-0.0.4.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dingtalk_api-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.0 kB
Release files / dingtalk-api-0.0.4.tar.gz
| Download URL | dingtalk-api-0.0.4.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e7e6683551569063a52c2ec7adbf2c2f632ed07b86225e1fe165cc0fd106585
|
|
BLAKE2b-256 checksum How to use checksums |
3ead532ca0139315ca2b6183936de69081f769a73c8124bb4081153e7cc3e561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / dingtalk_api-0.0.4-py3-none-any.whl
| Download URL | dingtalk_api-0.0.4-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46e2e80cce706844c3054fdbd44c1f5a48738fcc17208a5ca96eefe27ae13806
|
|
BLAKE2b-256 checksum How to use checksums |
7830d173b236b6ecf8a1c4852173874b1d6f021c71d2b6c010732d5a50265982
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|