Skip to main content

DingTalk Connection Platform Connection Flow SDK

Project description

概述

Version Python Version

xmes-dingtalk-connectflow-sdk 是钉钉连接平台自建连接流SDK(向美而生),通过该工具可以方便快捷的调用钉钉的连接流。

安装使用

pip install xmes-dingtalk-connectflow-sdk

功能特征

  • 支持连接流 多维表CURD_241217

使用方法

ComplexTable

该工具提供了连接流 多维表CURD_241217 的操作调用工具。

from DingtalkConnectflowSDK import ComplexTable
from DingtalkConnectflowSDk._table._types import GetterFilter, Updater

# 初始化ComplexTable对象
complextable = ComplexTable(flow_url='<连接流的同步协调URL>')

# 获取 Table 对象
table = complextable.get_table(did='<文档ID>', tid='<数据表ID>')
# 或者直接传入视图链接
# table = complextable.get_table_by_view_url(url='<视图链接>')

# 查询数据
filters = [
    GetterFilter(field='来源', operator='equal', value=['SDK', 'API'])
]
result = table.get(size=10, fillters=filters)

# 新增数据
records = [
    {'标题': 'Test Record 1', '来源': 'SDK},
    {'标题': 'Test Record 2', '来源': 'SDK},
]
result = table.add(records)

# 更新数据
records = [
    Updater(record_id='<记录ID>', fields={'来源': 'API'}),
    Updater(record_id='<记录ID>', fields={'来源': 'API'}),
]
result = table.update(records)

# 删除数据
record_ids = ['<记录ID>', '<记录ID>']
result = table.delete(record_ids)

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

xmes_dingtalk_connectflow_sdk-1.0.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

xmes_dingtalk_connectflow_sdk-1.0.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file xmes_dingtalk_connectflow_sdk-1.0.3.tar.gz.

File metadata

File hashes

Hashes for xmes_dingtalk_connectflow_sdk-1.0.3.tar.gz
Algorithm Hash digest
SHA256 64aaea167e7e6890ff15134576acccdd071948e36f3be83536cd4baf693cea0a
MD5 8b51b0d3c4dabc257a9433c21a61cfee
BLAKE2b-256 3263da2d45b9f4691b0f9cc97293d88327d6a2169221ee1d2069b9b4f7e01d44

See more details on using hashes here.

File details

Details for the file xmes_dingtalk_connectflow_sdk-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for xmes_dingtalk_connectflow_sdk-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 16509f17b46680f219d6e7982e97a5ccb1ee9c43d6c724356685f1e2ad7aa288
MD5 37a7a2fad8089ce3ff6da83b14c8f0c2
BLAKE2b-256 542d56ca409e38c012ccb1968d858bbce4520cc7f23e6ae8f7c723b1801acd9a

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