View Source ExPersona.Account (ex_persona v1.0.1)
Module for dealing with accounts.
Link to this section Summary
Link to this section Types
Link to this section Functions
@spec get(String.t()) :: ExPersona.Client.Operation.t()
Get a specific ExPersona.Account
.
@spec list() :: ExPersona.Client.Operation.t()
Get a list of all accounts.
If passed to ExPersona.request!/1
it will return only the first results from the list.
You can create a Stream
to paginate over all results by calling ExPersona.stream!/1
.
For instance:
# get 400 accounts
ExPersona.Account.list()
|> ExPersona.stream!()
|> Stream.take(400)
|> Enum.to_list()
|> IO.inspect()