Discuss Dropbox Developer & API
Hi,
We are using Java sdk to access apis of dropbox. Can you guys please inform us how to download content of a file present in a shared folder or group folder with team level access token.
Thanks in advance
If you're using the Dropbox Java SDK with an app with the "team member file access" permission and want to download files via the team member file access feature, you should first make a DbxTeamClientV2 with the team's access token. Then, you can call DbxTeamClientV2.asAdmin or DbxTeamClientV2.asMember, depending on your use case, to get a DbxClientV2 with the "Dropbox-API-Select-Admin" or "Dropbox-API-Select-User" header set, respectively.
You can also use DbxClientV2.withPathRoot to set the "Dropbox-API-Path-Root" header if needed. I recommend reviewing the Namespace Guide and Content Access Guide for more information on how the filesystem is structured and how to access different parts like this.
You can use the resulting DbxClientV2 to download files as desired using the DbxUserFilesRequests.download method.
If you're using the Dropbox Java SDK with an app with the "team member file access" permission and want to download files via the team member file access feature, you should first make a DbxTeamClientV2 with the team's access token. Then, you can call DbxTeamClientV2.asAdmin or DbxTeamClientV2.asMember, depending on your use case, to get a DbxClientV2 with the "Dropbox-API-Select-Admin" or "Dropbox-API-Select-User" header set, respectively.
You can also use DbxClientV2.withPathRoot to set the "Dropbox-API-Path-Root" header if needed. I recommend reviewing the Namespace Guide and Content Access Guide for more information on how the filesystem is structured and how to access different parts like this.
You can use the resulting DbxClientV2 to download files as desired using the DbxUserFilesRequests.download method.
Hi there!
If you need more help you can view your support options (expected response time for a 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!