Alternative to pending_upload when using sharing_create_shared_link_with_settings?
まだ誰も着手していません。
評価
調査の方向性
dropbox/base.py の非推奨の sharing_create_shared_link 定義付近から始め、sharing_create_shared_link_with_settings と比較してください。生成された API サーフェスと、pending_upload の動作に関連するテストやドキュメントを確認してください。対応済みとは、サポートされている非推奨ではない経路を特定するか、その動作が利用できないことを文書化することです。この issue には、指定されたテスト対象や実装対象はありません。
索引モデルが issue の本文から書いたものです。
説明
The method sharing_create_shared_link has a pending_upload argument which you can use to ask Dropbox to generate a url for a file or folder which is still in the process of being uploaded. If you do this and then use the link before the file is fully uploaded, you see a nice "This file cannot be previewed" UI, showing a zero-byte file. Once the file upload is complete, you can use the URL to share as you would any other generated URL.
This is fine, but sharing_create_shared_link is marked as deprecated and has been replaced by sharing_create_shared_link_with_settings. The new method doesn't have the pending_upload argument, nor does there seem to be any setting which you can pass in to get the same behavior.
So my question is: how do I get a shared link from a pending upload using non-deprecated API? I am not doing any uploading myself, I just have a script which generates shared links. So I can't do a zero-length upload because it could clobber the in-progress one which I have no control over.
Versions
- What version of the SDK are you using? Python SDK 11.36.0
- What version of the language are you using? Python 3.9.6
- What platform are you using? macOS 12.6.6
- 主要言語
- Python
- スター
- 983
- フォーク
- 331
- 平均マージ
- 3分
- マージ済み PR(30日)
- 10
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dropbox/dropbox-sdk-python のほかの issue
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dropbox/dropbox-sdk-python#585 · コメント 4 件 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dropbox/dropbox-sdk-python#491 · コメント 1 件 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
dropbox/dropbox-sdk-python#482 · コメント 1 件 · リアクション 2 件 ·
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
dropbox/dropbox-sdk-python#475 · コメント 1 件 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
dropbox/dropbox-sdk-python#459 · コメント 4 件 · リアクション 1 件 ·
dropbox/dropbox-sdk-python の issue をすべて見る
似ている issue
-
agent-ready documentation needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
instance instance add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
searxng/searx-instances#939 · コメント 1 件 ·
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100