View Source CozyOSS.ApiClient.Finch (cozy_oss v0.1.3)

Finch-based API client for CozyOSS.

config :cozy_oss, :api_client, CozyOSS.ApiClient.Finch

In order to use Finch API client, you must start Finch and provide a :name. Often in your supervision tree:

children = [
  {Finch, name: CozyOSS.Finch}
]

Or, in rare cases, dynamically:

Finch.start_link(name: CozyOSS.Finch)

If a name different from CozyOSS.Finch is used, or you want to use an existing Finch instance, you can provide the name via the config:

config :cozy_oss,
  api_client: CozyOSS.ApiClient.Finch,
  finch_name: My.Custom.Name