public static BoxItem . Info getSharedItem ( BoxAPIConnection api , String sharedLink , String password ) { BoxAPIConnection newAPI = new SharedLinkAPIConnection ( api , sharedLink , password ) ; URL url = SHARED_ITEM_URL_TEMPLATE . build ( newAPI . getBaseURL ( ) ) ; BoxAPIRequest request = new BoxAPIRequest ( newAPI , url , "GET" ) ; BoxJSONResponse response = ( BoxJSONResponse ) request . send ( ) ; JsonObject json = JsonObject . readFrom ( response . getJSON ( ) ) ; return ( BoxItem . Info ) BoxResource . parseInfo ( newAPI , json ) ; }
Gets an item that was shared with a password - protected shared link .