The Insights API client is part of the algoliasearch package. To install this package, run:

1
dart pub add algoliasearch

To use the Insights client, add this import to your files:

1
import 'package:algolia_client_insights/algolia_client_insights.dart';

To create an instance of the client:

1
2
3
4
final client = InsightsClient(
    appId: 'ALGOLIA_APPLICATION_ID',
    apiKey: 'ALGOLIA_API_KEY',
    region: 'ALGOLIA_APPLICATION_REGION');

List of methods

Each method makes one request to the Insights API.

Events

User tokens

Did you find this page helpful?