Links
Installing
Basic Usage
Theflareio package provides the NewApiClient method that can be used
to create a Flare API client.
The client exposes Get and Post methods that have a similar API to net/http.Client
with the exception that they accept paths as parameters instead of full URLs.
Specifying a Tenant Id
The Api Client can be configured to use a specific tenant id using theWithTenantId option.
Paging Util
TheApiClient has IterGet and IterPostJson methods that return iterators implementing the
Flare standard paging pattern .
The paging util leverages Go iterators which require Go version >= 1.23.
Paging Util Example