Box.V2.Managers.BoxGroupsManager.GetGroupAsync C# (CSharp) Method

GetGroupAsync() public method

Returns the group with the specified id.
public GetGroupAsync ( string id, List fields = null ) : Task
id string The id of the group to return.
fields List Attribute(s) to include in the response.
return Task
        public async Task<BoxGroup> GetGroupAsync(string id, List<string> fields = null)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.GroupsEndpointUri, id)
                .Param(ParamFields, fields);

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

            return response.ResponseObject;
        }