Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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.
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.
@Greg-DB Thanks . This helps.
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!