Configuration for a Corvo NFS-e API connection.
Build one with CorvoNfse.new/1 (or %CorvoNfse.Client{} directly) and pass
it as the first argument to every resource function.
client = CorvoNfse.new(api_key: "corvo_test_...")
CorvoNfse.Resources.Health.live(client)Options
:api_key- required unlessCORVO_API_KEYis set. Sent as theX-API-Keyheader (neverAuthorization: Bearer).:base_url- defaults toCORVO_BASE_URL, then to the publichttps://api.corvo.tech. Trailing slashes are stripped. Plainhttp://is only accepted for loopback/private hosts unlessallow_insecure_http: true.:prefix- API prefix segment, defaults toCORVO_API_PREFIXor"v1". Pass""for installs without a prefix. Surrounding slashes are trimmed.:receive_timeout- per-request receive timeout in milliseconds, defaults to 30_000.:allow_insecure_http- allowhttp://for public hosts (defaultfalse).:finch- Finch pool name, defaults toCorvoNfse.Finch(started with the application).:http- HTTP adapter module, defaults toCorvoNfse.HTTP.Finch.
Construction problems (missing API key, invalid base URL) raise
ArgumentError; API, network and timeout failures are never raised - they
come back as {:error, %CorvoNfse.Error{}}.
Summary
Functions
Builds a client from options with environment fallbacks.
Types
Functions
Builds a client from options with environment fallbacks.
Raises ArgumentError when the configuration is unusable.