flareio
package provides the FlareApiClient
class, which automatically manages
authentication and exposes get
, post
, put
, and delete
methods.
FLARE_API_KEY
and FLARE_TENANT_ID
environment variables.
For example, you may expose the following environment variables, and then create an API client from them:
FlareApiClient
has a scroll
method that can be used with endpoints that support the
Flare standard paging pattern .
FlareApiClient
can be initialized with a custom requests.Session
. This allows, for example,
to inject custom retry configuration.