Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dropbox API: How to use API to get file's shared link?

Tags:

dropbox-api

I have a folder which contains 100+ files, I want to shall them all and get all the shared links, is there anyway to do this?

like image 410
Xing Shi Avatar asked Apr 08 '14 20:04

Xing Shi


People also ask

How do I find the URL of a Dropbox file?

Go to Dropbox.com, find your file, and click the Copy link button that appears when you hover over it. Or, on your desktop, right-click on the file, and select Copy Dropbox Link. Copy that link and paste it in your browser, and it should download the file directly.

How do I use Dropbox API?

To use the Dropbox API, you'll need to register a new app in the App Console. Select Dropbox API app and choose your app's permission. You'll need to use the app key created with this app to access API v2.

Does Dropbox have an open API?

Dropbox supports OAuth 2.0 for authorizing API requests. Find out more in our OAuth guide. Authorized requests to the API should use an Authorization header with the value Bearer <TOKEN> , where <TOKEN> is an access token obtained through the OAuth flow.


1 Answers

That's DropBox API v. 1, which is now deprecated:

https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/

I found, for current v.2, depending on your needs:

/2/files/get_temporary_link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link

/2/sharing/create_shared_link_with_settings https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings

/2/sharing/create_shared_link https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link

like image 164
BaseZen Avatar answered Jan 04 '23 06:01

BaseZen