Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.28 KB

shared-items.md

File metadata and controls

32 lines (24 loc) · 1.28 KB

Shared Items

Shared Items represent files and folders on Box accessed via a shared link.

Get a Shared Item

To get the file or folder information for a shared link, you can call BoxItem.getSharedItem(BoxAPIConnection api, String sharedLink) with the shared link to get information about the item behind it.

String sharedLink = "https://app.box.com/s/abcdefghijklmnopqrstuvwxyz123456";
BoxItem.Info itemInfo = BoxItem.getSharedItem(api, sharedLink);

If the shared link is password-protected, call BoxItem.getSharedItem(BoxAPIConnection api, String sharedLink, String password) with the shared link and password.

String sharedLink = "https://app.box.com/s/abcdefghijklmnopqrstuvwxyz123456";
String password = "foo";
BoxItem.Info itemInfo = BoxItem.getSharedItem(api, sharedLink, password);