Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Daniel23
8 years agoExplorer | Level 4
Get message from server if a file is modified
I am looking for a way to sync the files of the App-Folder in Dropbox with the local files if a file is modified on the PC an synced. My first thought is to react to a message from the server if one ...
- 8 years ago
That's correct, you need a web server where you can receive the notifications to use webhooks. The webserver doesn't have to use Python though. That's just for the example. It can run whatever you want.
If you want a purely client-side solution, you can instead use "longpolling", to get low latency updates. There's an old blog post that explains how this works. That was written for the now-retired API v1, but the concept is the same on API v2. On API v2, the endpoint is /2/files/list_folder/longpoll. This is also implemented in the API v2 SwiftyDropbox SDK, as well as in the API v2 Objective-C SDK
Greg-DB
Dropbox Community Moderator
8 years agoIt sounds like you're looking for the "webhooks" feature. You can find more information here:
https://www.dropbox.com/developers/reference/webhooks
https://www.dropbox.com/developers/reference/webhooks
Daniel23
8 years agoExplorer | Level 4
Yes, I think that is it. Thank you.
But is does also work with android/java, doens't it? Because the example app is in python.
If I understand the tutorial right, I need a webapp on my own server. But I don't have something like that. I just have my native app on the phone authenticated with the acc of the user.
- Greg-DB8 years ago
Dropbox Community Moderator
That's correct, you need a web server where you can receive the notifications to use webhooks. The webserver doesn't have to use Python though. That's just for the example. It can run whatever you want.
If you want a purely client-side solution, you can instead use "longpolling", to get low latency updates. There's an old blog post that explains how this works. That was written for the now-retired API v1, but the concept is the same on API v2. On API v2, the endpoint is /2/files/list_folder/longpoll. This is also implemented in the API v2 SwiftyDropbox SDK, as well as in the API v2 Objective-C SDK
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!