# `Magpie.Users`
[🔗](https://github.com/alexcassol/magpie/blob/v0.3.1/lib/magpie/users.ex#L1)

This namespace contains endpoints and data types for user management.

# `current_account`

```elixir
@spec current_account(Magpie.Client.t()) :: Magpie.response()
```

Get the current user's account.

## Example

  Magpie.Users.current_account client

More info at: https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account

# `current_account_to_struct`

```elixir
@spec current_account_to_struct(Magpie.Client.t()) ::
  {:ok, Magpie.Account.t()} | {:error, Magpie.Error.t()}
```

Same as `current_account/1` but returns `{:ok, %Magpie.Account{}}`.

# `features_get_values`

Get a list of feature values that may be configured for the current account,
e.g. `[%{".tag" => "paper_as_files"}]`.

More info at: https://www.dropbox.com/developers/documentation/http/documentation#users-features-get_values

# `get_account`

```elixir
@spec get_account(Magpie.Client.t(), binary()) :: Magpie.response()
```

Get user account by account_id.

## Example

  Magpie.Users.get_account client, "dbid:..."

More info at: https://www.dropbox.com/developers/documentation/http/documentation#users-get_account

# `get_account_batch`

```elixir
@spec get_account_batch(Magpie.Client.t(), [binary()]) :: Magpie.response()
```

Get user accounts in batch by their account ids.

## Example

  Magpie.Users.get_account_batch client, ["dbid:1", "dbid:2"]

More info at: https://www.dropbox.com/developers/documentation/http/documentation#users-get_account_batch

# `get_account_to_struct`

```elixir
@spec get_account_to_struct(Magpie.Client.t(), binary()) ::
  {:ok, Magpie.Account.t()} | {:error, Magpie.Error.t()}
```

Same as `get_account/2` but returns `{:ok, %Magpie.Account{}}`.

# `get_space_usage`

```elixir
@spec get_space_usage(Magpie.Client.t()) :: Magpie.response()
```

Get the current user's space usage.

## Example

  Magpie.Users.get_space_usage client

More info at: https://www.dropbox.com/developers/documentation/http/documentation#users-get_space_usage

# `get_space_usage_to_struct`

```elixir
@spec get_space_usage_to_struct(Magpie.Client.t()) ::
  {:ok, Magpie.SpaceUsage.t()} | {:error, Magpie.Error.t()}
```

Same as `get_space_usage/1` but returns `{:ok, %Magpie.SpaceUsage{}}`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
