cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Can I do this with Dropbox API?

New member | Level 1
New member | Level 1

I'm building an API for my app. I would like my API-server to have a Dropbox account. Each registered user would get a shared Dropbox link of his/her own.

When the user drops file in the shared folder the server is noticed and will import the files. The server will delete the file from Dropbox after importing. Instead a text file will be placed in the shared folder, describing that the uploaded files was successfully imported to the database.

More technically:

- I need one Dropbox account of some kind

- Need to create folders to be shared privately with each user (one folder per user)

- Need notification when new files are uploaded to shared folders

Is there such a Dropbox account and does these functions exist in the API?

Thanks,

//Michael

1 Reply 1
Highlighted

Re: Can I do this with Dropbox API?

Dropboxer
Dropboxer

This sounds like it should be possible. Specifically:

- There isn't a special kind of account for this, but a normal account should work. You can register an account here: https://www.dropbox.com/register

- Yes, you can use the new API v2 shared folder endpoints to share folders and invite users:

https://www.dropbox.com/developers/documentation/http#documentation-sharing-share_folder
https://www.dropbox.com/developers/documentation/http#documentation-sharing-add_folder_member

Note that these endpoints are still in beta though.

- You can use webhooks to be efficiently notified of when things change in the account: https://www.dropbox.com/developers/webhooks

Moreover though, you probably don't actually need to use a central account with shared folders like this. If you just register an app normally (even just the app folder permission would suffice) and have users link their Dropbox accounts to it, your app could still be notified of changes in their accounts via webhooks, and then use the normal file uploading and downloading calls to get the contents and replace them, delete files, etc.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?