I have upgraded my box SDK version (2.32.0 → 4.11.1)
In 2.32.0 there is a way to create shared link to BoxItem object:
private String createSharedPath(BoxItem item) {
if (Objects.isNull(item)) return null;
BoxSharedLink.Permissions permissions = new BoxSharedLink.Permissions();
permissions.setCanDownload(true);
permissions.setCanPreview(false);
BoxSharedLink sharedLink = item.createSharedLink(BoxSharedLink.Access.COMPANY, null, permissions);
return sharedLink.getDownloadURL();
}
In 4.11.1 BoxItem does not include createSharedLink function.
How can I perform the same thing in the new version?
I could not found anything familiar in the docs