View Source ExPersona.Account (ex_persona v1.0.1)

Module for dealing with accounts.

Link to this section Summary

Functions

Get a specific ExPersona.Account.

Get a list of all accounts.

Link to this section Types

@type t() :: %ExPersona.Account{data: map(), id: String.t()}

Link to this section Functions

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()