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.2.tar.gz (5.5 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.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for xmes_dingtalk_connectflow_sdk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1b871bb9b61f6f5adcd3b045b263f2fc7b2065bfa6ee53d7aaf764785b50dd2f
MD5 f87696ce5a950842a576dc497287f2ae
BLAKE2b-256 a80c330bfb93d2fa38645f0e3ac34ffcf400614b3b2b9bc039255220657e2e0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xmes_dingtalk_connectflow_sdk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eb8132ecd4ab242079a9aa320d30fb917bcde796f66be04c736f253118b178b6
MD5 79f31e67298bdb20fb36e7fdc704239f
BLAKE2b-256 74b9eed3e30a98d5568ae30fa55fa591f28d2bfe0d71be1fd8fd235c7bfe7f25

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