Links
Installing
Basic Usage
Theflareio package provides the FlareApiClient class, which automatically manages
authentication and exposes get, post, put, and delete methods.
Basic Usage Example
Creating a client from environment variables
The Flare SDK automatically recognizes theFLARE_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:
Paging Util
TheFlareApiClient has a scroll method that can be used with endpoints that support the
Flare standard paging pattern .
Paging Util Example
Custom Session
TheFlareApiClient can be initialized with a custom requests.Session. This allows, for example,
to inject custom retry configuration.
Custom Session