Thin wrapper around Req that handles base URL, retries, telemetry and
optional session cookies for ExFPL API requests.
Library code should not call Req directly — go through get/2 so the
test stub and telemetry events apply uniformly.
Summary
Functions
Issue a GET request to the ExFPL API.
Types
Decoded JSON body returned by the API.
@type error() :: {:http_error, status :: pos_integer(), body :: term()} | Exception.t() | term()
Errors returned by get/2.
Functions
Issue a GET request to the ExFPL API.
Options:
:session— aExFPL.Session{}whosecookiewill be sent as thecookierequest header.:params— query string parameters (a keyword list).- any other key is forwarded to
Req.request/1.
Returns {:ok, body} on a 2xx response and {:error, reason} otherwise.