Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Alternative to pending_upload when using sharing_create_shared_link_with_settings?

オープン
#476 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

dropbox/base.py の非推奨の sharing_create_shared_link 定義付近から始め、sharing_create_shared_link_with_settings と比較してください。生成された API サーフェスと、pending_upload の動作に関連するテストやドキュメントを確認してください。対応済みとは、サポートされている非推奨ではない経路を特定するか、その動作が利用できないことを文書化することです。この issue には、指定されたテスト対象や実装対象はありません。

索引モデルが issue の本文から書いたものです。

説明

question

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dropbox/dropbox-sdk-python のほかの issue

dropbox/dropbox-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。