獲取 Dropbox 共享鏈接的文件列表 (Get list of files for dropbox shared link)


問題描述

獲取 Dropbox 共享鏈接的文件列表 (Get list of files for dropbox shared link)

我正在嘗試做的事情似乎很簡單,但我找不到方法。

想像一下有人向您發送了一個 Dropbox 文件夾的鏈接。您可以轉到該 URL 並查看文件夾中的所有文件。

我正在嘗試用 python、php 或 javascript 編寫腳本以從該 URL 獲取該文件夾中的所有下載鏈接.

我該怎麼做呢?無需登錄/驗證首先發送鏈接的用戶的帳戶。


參考解法

方法 1:

I doubt that it's possbile to do without auth. As mentioned in Dropbox API doc — "Dropbox uses OAuth to authenticate all API requests."

方法 2:

Assuming that the contents of the folder are indeed public as you've indicated in the comments, you might want to look into the use of PHP's file_get_contents() function.

From the docs:

file_get_contents — Reads entire file into a string

(by AntonclegBenM)

參考文件

  1. Get list of files for dropbox shared link (CC BY‑SA 2.5/3.0/4.0)

#dropbox #javascript #Python #dropbox-php #dropbox-api






相關問題

獲取 Dropbox 共享鏈接的文件列表 (Get list of files for dropbox shared link)

將文件上傳到保管箱時,方法出錯 (while uploading a file to dropbox getting an error with method)

Dropbox Api putFile php 發送文件失敗 (Dropbox Api putFile php fail send file)

Tiếp tục quá trình tải lên trong IOS nền (Continue uploading process in background IOS)

API Dropbox: phát hiện cập nhật tệp và nhận URL đến tệp? (Dropbox API: detect file updates, and get a URL to a file?)

Mac OS X 文件的 st_flags(用戶定義的標誌)是什麼? (What are st_flags (user defined flags) for a file Mac OS X?)

Dropbox如何監控? (How does dropbox monitoring?)

如何在 Dropbox 中使用 Bazaar? (How to use Bazaar with Dropbox?)

在 Python 中使用 OAuth2 連接到保管箱時出錯 (Error using OAuth2 to connect to dropbox in Python)

從樹莓派自動上傳到保管箱? (automatic upload on dropbox from raspberry pi?)

識別 macOS 上的託管文件夾 (Identify managed folders on macOS)

我們如何在下載/上傳 dropbbox 方法中獲取文件 mime-type/content-type? (How can we get files mime-type/content-type in download/upload dropbbox methods?)







留言討論