cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Providing Users access to MY files via a Dropbox API app.. I don't care about their files

Providing Users access to MY files via a Dropbox API app.. I don't care about their files

Gregory B.3
New member | Level 1
Go to solution

I've got a big Dropbox folder full of PDFs that I'd like to allow users to download from my website. However, everything I've seen in the API seems to work with the user's Dropbox account, allowing the website to pull up files from their accounts, etc. Literally all I want is to show my visitors a list of files and folders from my DB that they can download.

Certainly this is possible with the API, right? It seems as if every call needs a Oauth token, which seems to come from the user browsing, rather then some consistent account. Can anyone provide some very basic direction for this Dropbox API newbie?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

I just wanted to follow up on this thread to let you know that we've made a preview of a new pre-built component for embedding files and folders available! You can find more information about the Dropbox Embedder in our blog post here:

 

https://dropbox.tech/developers/new-file-and-folder-embedder-launched-in-preview

 

There's also a chance to win a $200 Amazon gift card if you fill out a survey about the new Dropbox Embedder. Check out the blog post above for more information.

View solution in original post

5 Replies 5

Greg-DB
Dropbox Staff
Go to solution

You're correct that the API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons. For web apps though, most of these concerns are allayed, since you can protect your access token server-side.

If you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your app and account. (Just be careful not to revoke it, e.g. via https://www.dropbox.com/account/security .) That is to say, you just need to process the app authorization flow (or get a generated access token via the App Console) for your own account once and then hard code that access token into your app for use when making the necessary API calls.

Alternatively, you could just use a shared link to the folder you want to share.

Gregory B.3
New member | Level 1
Go to solution

Thanks Greg K! Awesome help there -- One last question about this: Since this folder contains sub-folders, I'm not really relishing having to code out the API from scratch to allow users to browse through sub-folders (and reload the file list, etc). Are you aware of any pre-built community solutions that handle navigating through a connected Dropbox folder, from a UI/UX perspective?

Greg-DB
Dropbox Staff
Go to solution

I'm not aware of anything quite like that off hand, unfortunately.

Gregory B.3
New member | Level 1
Go to solution

Ok, thanks again Greg!

Greg-DB
Dropbox Staff
Go to solution

I just wanted to follow up on this thread to let you know that we've made a preview of a new pre-built component for embedding files and folders available! You can find more information about the Dropbox Embedder in our blog post here:

 

https://dropbox.tech/developers/new-file-and-folder-embedder-launched-in-preview

 

There's also a chance to win a $200 Amazon gift card if you fill out a survey about the new Dropbox Embedder. Check out the blog post above for more information.

Need more support?