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 - Generic
TheFlareApiClient has a scroll method that can be used with endpoints that support the
Flare standard paging pattern .
Paging Util - Generic Example
Paging Util - Event Feeds
TheFlareApiClient has a scroll_events method that can be used with event feeds endpoints.
The advantage of this method over scroll is that it also automates the fetching of individual events.
Paging Util - Event Feeds Example
Custom Session
TheFlareApiClient can be initialized with a custom requests.Session. This allows, for example,
to inject custom retry configuration.
Custom Session