Skip to main content

DingTalk Mini SDK

Project description

Ding SDK

钉钉企业内部应用使用的钉钉SDK,为更贴合个人编码习惯,由个人自主开发和维护的钉钉SDK的 Python 模块。

  1. 安装

    pip install dingsdk
    
  2. 使用

    from dingsdk import DingSDK
    
    sdk = DingSDK()
    sdk.appkey = 'your appkey'
    sdk.agentid = 'your agentid'
    sdk.appsecret = 'your appsecret'
    sdk.access_token = sdk.get_token()		# 获取企业内部应用的 AccessToken
    
  3. 清洗审批实例

    from dingsdk.utils import InstanceCleaner
    
    instid = "approval process instance id"
    instance = sdk.get_instance_detail(instid)
    cleaner = InstanceCleaner(instance)
    cleaner.cleaned_data		# 已清洗的审批实例数据
    cleaner.cleaned_formvs		# 已清洗的实例表单数据
    

版本进程

1.0.0_2023.2.2

  • 发布钉钉接口方法十四个,见接口检索;
  • 钉钉审批实例数据清洗,InstanceCleaner()

2.0.0_2023.3.8

  • 重构部分代码,使创建新接口变得容易且清晰;
  • 取消了部分接口的调用限制, 在方法内自动处理;
  • 将 InstanceCleaner 移动到 utils 包中;
  • 新增了钉钉接口方法,并创建了 DingSDK 文档说明进行接口检索;

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dingsdk-2.0.0-py3-none-any.whl (19.5 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