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

Ouverte
#2,014 2 commentaires 2 réactions 2 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@zimeg y travaille déjà.

Depuis le 13/11/2026.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
python
Domaine
api

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
4k
Forks
874
Merge moyen
13 h 22 min
PR mergées (30 j)
64

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de slackapi/python-slack-sdk

Toutes les issues de slackapi/python-slack-sdk

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.