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

Đang mở
#2,014 2 bình luận 2 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@zimeg đang làm issue này rồi.

Từ ngày 13/11/2026.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
4k
Fork
874
Merge trung bình
13 giờ 22 phút
Pull request đã merge (30 ngày)
64

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của slackapi/python-slack-sdk

Tất cả issue của slackapi/python-slack-sdk

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.