MoneyHub.BankIcons (MoneyHub v1.0.0)

Copy Markdown View Source

Fetches a bank/institution's icon image by its bank reference, for use in bank-chooser UIs alongside MoneyHub.Connections.available/2.

Summary

Functions

Fetches the icon for a given bank reference, using a client_credentials token (the same kind used for MoneyHub.Connections.available/2). Returns the raw Req.Response.t() so callers can inspect content-type and write the body to a file or stream it back to a client.

Functions

get(config, token, bank_ref)

@spec get(MoneyHub.Config.t(), String.t(), String.t()) ::
  {:ok, Req.Response.t()} | {:error, MoneyHub.Error.t()}

Fetches the icon for a given bank reference, using a client_credentials token (the same kind used for MoneyHub.Connections.available/2). Returns the raw Req.Response.t() so callers can inspect content-type and write the body to a file or stream it back to a client.