Packages
starling_elixir
0.4.0
An Elixir wrapper for the Starling Bank API
Retired package: Renamed - Project renamed to Starling
Current section
Files
Jump to
Current section
Files
lib/starling/user.ex
defmodule Starling.User do
defstruct uuid: nil
@type t :: %__MODULE__{
uuid: String.t()
}
def current_user(client) do
{:ok, document} = Starling.Client.get(client, "api/v1/me")
user = %__MODULE__{uuid: document.properties["customerUid"]}
{:ok, user}
end
end