Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Reshma
4 years agoExplorer | Level 3
How to get Shared Folder ID for a shared folder in java using dropbox sdk.
How to get Shared Folder ID for a shared folder in java using dropbox sdk.
I'm using the below method to share a folder. But this is returning ShareFolderLaunch. But I want to share a folder and get SharedFolderMetadata . If not shareFolder() method is there any other method which returns SharedFolderMetadata ??
ShareFolderLaunch data = client.sharing().shareFolder("/TestShareFolder/");
I wanted to share a folder and get the value of SharedFolderID from SharedFolderMetadata class , something like SharedFolderMetadata.getSharedFolderId().
Could you please suggest me what action or which methods returns me SharedFolderMetadata.getSharedFolderId()
If ShareFolderLaunch.isAsyncJobId from shareFolder is true, you should then poll checkShareJobStatus using the job ID from ShareFolderLaunch.getAsyncJobIdValue to check on the status of that share job. That will give you a ShareFolderJobStatus you can check to see the current status. When it's complete, you can get the SharedFolderMetadata from ShareFolderJobStatus.getCompleteValue.
For existing shared folders, check out DbxUserFilesRequests.getMetadata and DbxUserSharingRequests.getFolderMetadata.
Refer to the linked documentation pages for more information.
2 Replies
- Greg-DB4 years ago
Dropbox Community Moderator
If ShareFolderLaunch.isAsyncJobId from shareFolder is true, you should then poll checkShareJobStatus using the job ID from ShareFolderLaunch.getAsyncJobIdValue to check on the status of that share job. That will give you a ShareFolderJobStatus you can check to see the current status. When it's complete, you can get the SharedFolderMetadata from ShareFolderJobStatus.getCompleteValue.
For existing shared folders, check out DbxUserFilesRequests.getMetadata and DbxUserSharingRequests.getFolderMetadata.
Refer to the linked documentation pages for more information.
- Reshma4 years agoExplorer | Level 3
Greg-DB Thanks . This helps.
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!