Currently, Dropbox API help us to download and upload file to dropbox.
But, I need a trigger on my application, when a files were uploaded to dropbox. Can we do that?
For web apps, you can get notified of changes in your linked users' account using webhooks:
https://www.dropbox.com/developers/webhooks/docs
For client-side apps, you can use /longpoll_delta:
https://www.dropbox.com/developers/core/docs#longpoll-delta
Hi @Gregory, Thanks for your answering, I'm using web apps. But I have a concern, that the JSON body (notification) only have information about user who edit the file, don't have the file's name:
{ "delta": { "users": [ 12345678, 23456789, ... ] } }
What I need is the name of file was uploaded by any user (user can upload from web page of DropBox or Dropbox application).
Once you receive the notification, you can call /delta for that user to find out specifically what changed:
https://www.dropbox.com/developers/core/docs#delta
I see, thanks you so must.
Note: I hope we can have file's information when webhooks response to us in the future