slackapi / slackapi/python-slack-sdk
Download file using WebClient
オープン
まだ誰も着手していません。
discussion
enhancement
Version: 3x
web-client
- 主要言語
- Python
- スター
- 4k
- フォーク
- 857
- 平均マージ
- 22時間 21分
- マージ済み PR(30日)
- 16
説明
Right now, the only way to download a file from Slack is to do something like this:
import requests
response = requests.get(url_private, headers={"Authorization": f"Bearer {TOKEN}"}, timeout=30)
However, this does not respects the parameters passed to WebClient. We should be able to do something like:
client = WebClient()
response = client.get(url_private)
Or something along those lines.
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず slack_sdk.web.WebClient の同期および非同期の実装を読み、リクエストにクライアントパラメータを適用する方法を追跡します。既存の Web API client のテストがあれば確認し、完了条件を、設定済みのパラメータを維持しながら WebClient を介したファイルダウンロードを可能にし、両方のクライアントバリアントをサポートすることとします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100