You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
sarshavs
8 months agoExplorer | Level 3
List folder api with admin header
Hello, im using the Api list_folder and try to get any event for any user in the team. is it possible? Im using the header dropbox-api-select-admin and i saw in the docs -
-----
Specifically, t...
sarshavs
Explorer | Level 3
Thanks for the Answer, Greg-DB Здравко
Im aware when im using latest cursor only evens after will be visible.
I will demonstrate what i need to achieve
I have app which dropbox accounts are connected to (can be business account and non business accounts)
My goal is to get any new event in the account without knowing which user has actually generated the event.
I want to prevent from using webhook and instead trigger every couple minutes task that will fetch new events for specific account. Im trying to achieve that with one cursor for the account and the solution will be applicable both for business / no business accounts.
Both your suggestions using business api so for non business i would need to use something different.
Thanks for the time and the answeres 🙂
sarshavs
8 months agoExplorer | Level 3
Another question - all the non business accounts has upgraded to be business accounts? so every account now will support the business api if that the case it will work for me with using the get events ep.
If not so does i need to supply in list folder ep for non business account the member id or i will get all the files for any user in the non business account?
Thanks
- Здравко8 months agoLegendary | Level 20
sarshavs, If you want to check if there is some event (file/folder change), usage of endpoint /2/files/list_folder/longpoll is much more efficient compared to continuously pooling. Such a solution would work with both personal and team account. Once an event appears you can check what has changed.
Good luck.
- sarshavs8 months agoExplorer | Level 3
Здравко What you suggesting only notify if changes has made and dont return which user or how i can get what specifically changed in the account... because then i need to go back to list folder and then the same problem
- Здравко8 months agoLegendary | Level 20
I just said it's more efficient - low latency (if this is important for you). Something that difficult can be achieved just looping with listing only. For individual account you cannot achieve information who changed particular file, only the file(s) can be figured out. For team account, you have to use team endpoints though. In your application you can decide whether you have to use team endpoints based on current account in use (is it team or individual). That's it.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 8 minutes agoIf 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 or Facebook.
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!