Comments
-
Yes those fields are optional and may not be returned for all cases. But I still need to get those information - link audience and access level. How do I get this information - with whom I have shared that file and what can they do with the link. I am sure I have shared files in my dropbox.
-
Thank you. 😀 After setting the root namespace it works String rootNS = client.asAdmin(memberId).users().getCurrentAccount().getRootInfo().getRootNamespaceId(); List<SharedLinkMetadata> sharedLinkMetadataList = client .asMember(memberId) .withPathRoot(PathRoot.namespaceId(rootNS)) .sharing() .listSharedLinks() .getLinks();