Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.box.androidsdk.content;
 
Represents the API of the User endpoint on Box. This class can be used to generate request objects for each of the APIs exposed endpoints
 
public class BoxApiUser extends BoxApi {

    
Constructs a BoxApiUser with the provided BoxSession

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

    
Gets the URL for getting information of the current user

Returns:
the URL string for getting information of the current user
    protected String getUsersUrl() { return String.format("%s/users"getBaseUri()); }


    
Gets the URL for getting information of the current user

Returns:
the URL string for getting information of the current user
    protected String getUserInformationUrl(String id) { return String.format("%s/%s"getUsersUrl(), id); }


    
Gets a request that gets information about the current user

Returns:
request to get information about the current user
            BoxRequestsUser.GetUserInfo request = new BoxRequestsUser.GetUserInfo(getUserInformationUrl("me"), );
        return request;
    }

    
Gets a request that gets information about a user

Parameters:
id id of the user to get information on
Returns:
request to get information about a user
        return request;
    }

    
Gets a request that gets all the users of an enterprise The session provided must be associated with an enterprise admin user

Returns:
request to get all users of an enterprise
        return request;
    }

    
Gets a request that creates an enterprise user The session provided must be associated with an enterprise admin user

Returns:
request to create an enterprise user
        return request;
    }

    
Gets a request that deletes an enterprise user The session provided must be associated with an enterprise admin user

Returns:
request to delete an enterprise user
        return request;
    }
New to GrepCode? Check out our FAQ X