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

Aperta
#2,014 2 commenti 2 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@zimeg ci sta già lavorando.

Dal 13/11/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
4k
Fork
874
Merge medio
13h 22m
PR unite (30g)
64

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di slackapi/python-slack-sdk

Tutte le issue di slackapi/python-slack-sdk

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.