Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.box.androidsdk.content;
 
Represents the API of the share endpoint on Box. This class can be used to generate request objects for each of the APIs exposed endpoints
public class BoxApiShare extends BoxApi {
    protected String getSharedItemsUrl() { return String.format("%s/shared_items"getBaseUri()); }

    
Constructs a BoxApiShare with the provided BoxSession

Parameters:
session authenticated session to use with the BoxApiShare
    public BoxApiShare(BoxSession session) {
        super(session);
    }

    
Returns a request to get a BoxItem from a shared link.

Parameters:
sharedLink shared link of the item to retrieve.
Returns:
request to get a BoxItem from a shared link.
        BoxSharedLinkSession session = new BoxSharedLinkSession(sharedLink);
        session.setSharedLink(sharedLink);
        BoxRequestsShare.GetSharedLink request = new BoxRequestsShare.GetSharedLink(getSharedItemsUrl(), session);
        return request;
    }
New to GrepCode? Check out our FAQ X