Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
jyyoon
5 years agoExplorer | Level 3
To detect file changes for team
I can detect file changes with /list_folder/longpoll and /list_folder/continue for a single user(not team)
Can I use /list_folder/longpoll for teams file? I want to use longpoll not /team_log/g...
Greg-DB
Dropbox Community Moderator
5 years agoYou can use the list_folder endpoints to list and detect changes to any files in an account, including files in team folders/spaces, as long as the app and connected account have access to the files. You can find more information on app permissions here. For access to shared areas, such as team folders/spaces, the app would need to use the "full Dropbox" access type (not the "app folder" access type).
The following guides may be helpful:
- https://developers.dropbox.com/dbx-file-access-guide
- https://developers.dropbox.com/dbx-team-files-guide
- https://developers.dropbox.com/detecting-changes-guide
Regarding the "Your request includes an Authorization header, but this function does not use it" error you're seeing on /2/files/list_folder/longpoll in particular, that's because that endpoint expects "No Authentication", so you shouldn't supply an "Authorization" header. (The necessary information is embedded in the "cursor" value you supply.)
For other calls, if the app is linked only to a member's own account, not the entire team, you should not supply the "Dropbox-API-Select-User" header. That header is only needed when the app is connected to the entire team and the endpoint being used is a user endpoint, and so a specific member needs to be specified. You can find more information on this feature in the "Member file access" documentation.
And for reference, user-linked access tokens can't be used to call /2/team/token/get_authenticated_admin, as that's only accessible to and necessary for team-linked access tokens.
- jyyoon5 years agoExplorer | Level 3
Then, how can I get changes of files in team folders of a team space?
I can access the folders and the files with a root name space, but the /list_folder/longpoll don't give me a notification of any changes of files in the team space.
- Greg-DB5 years ago
Dropbox Community Moderator
The /2/files/list_folder/longpoll endpoint should notify you of changes relevant to whatever cursor you give it. So, as long as you call /2/files/list_folder[/continue] with the necessary "Dropbox-API-Path-Root"/parameters it will notify of relevant changes.
For example, if you originally called /2/files/list_folder with a "Dropbox-API-Path-Root" with a "root" for the team space, it will give you back a cursor. If you pass that cursor to /2/files/list_folder/longpoll, it should report changes for changes inside that team space.
If something doesn't seem to be working as expected though, feel free to share the relevant steps and code to reproduce the issue, and whatever unexpected error or output you're getting so we can look into it.
- jyyoon5 years agoExplorer | Level 3
When I got a notification from longpoll using a cursor whicn I got from /list_folder, I tried to request /list_folder/continue with the cursur. The response was cursor reset error.
Which cursor should I use when requesting /list_folder/continue after longpoll?
And If I want to get notifications from 5 team folders, should I request 5 longpoll at the same time by thread?
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!