Add missing Web API methods that are documented on docs.slack.dev to WebClient

未关闭
#2,014 2 条评论 2 个 reaction 已指派 2 人 在 GitHub 查看

维护者通常 1 天内回复

@zimeg 已经在做这个了。

开始于 2026年11月13日。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
api

调研方向

Start with slack_sdk/web/client.py to see how an existing keyword-only method is written and linked to its docstring, then read scripts/codegen.py to learn how the async and legacy variants are generated. Pick one namespace from the checklist, such as canvases.getContent, and add it following the existing pattern. Done means the method exists on the sync and async clients, has the docstring link, and the regenerated code passes the existing tests.

由索引模型根据 Issue 内容生成。

描述

enhancement web-client

The following 57 Web API methods have public reference pages on docs.slack.dev, and each page lists a Python WebClient method for them (for example app.client.canvases_getContent), but slack_sdk.web.WebClient doesn't implement them yet. Until they're added, the only way to call these methods is client.api_call("method.name", ...).

The list comes from comparing the method pages in https://docs.slack.dev/sitemap.xml with the api_call targets in slack_sdk/web/client.py. It doesn't include:

  • apps.datastore.* and apps.activities.list, which are only for Slack-hosted apps
  • users.setActive, which the docs describe as deprecated and non-functional
  • admin.conversations.bulkSetProperties, which is already tracked in #1992
Missing methods
admin.analytics
admin.apps
admin.audit
admin.conversations
admin.slackbot
admin.usergroups
admin.users
admin.workflows
apps.auth
apps.icon
apps.managed
assistant
canvases
entity
functions.distributions
functions.workflows
oauth.v2
slackbot
workflows.triggers

Each method should follow the existing pattern in client.py (keyword-only args, docstring link to the reference page), with the async/legacy variants generated by scripts/codegen.py. I'm happy to send PRs, likely grouped by namespace.

Category (place an x in each of the [ ])
  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.models (UI component builders)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.audit_logs (Audit Logs API client)
  • slack_sdk.scim (SCIM API client)
  • slack_sdk.rtm (RTM client)
  • slack_sdk.signature (Request Signature Verifier)
Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

主要语言
Python
星标
4k
派生
874
平均合并
13 小时 22 分钟
30 天内合并 PR
64

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

slackapi/python-slack-sdk 的其他 Issue

查看 slackapi/python-slack-sdk 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。