Box.V2.Managers.BoxFoldersManager.GetCollaborationsAsync C# (CSharp) Method

GetCollaborationsAsync() public method

Use this to get a list of all the collaborations on a folder i.e. all of the users that have access to that folder.
public GetCollaborationsAsync ( string id, List fields = null ) : Task>
id string Id of the folder
fields List Attribute(s) to include in the response
return Task>
        public async Task<BoxCollection<BoxCollaboration>> GetCollaborationsAsync(string id, List<string> fields = null)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.FoldersEndpointUri, string.Format(Constants.CollaborationsPathString, id))
                .Param(ParamFields, fields);


            IBoxResponse<BoxCollection<BoxCollaboration>> response = await ToResponseAsync<BoxCollection<BoxCollaboration>>(request).ConfigureAwait(false);

            return response.ResponseObject;
        }