Skip to Content
Nouvelle documentation Applite - JS SDK, Dart SDK & REST API
Dart SDKStatistiques

Statistiques (StatsApi)

Le module StatsApi gère les statistiques personnalisées.

Accès : client.stats

Méthodes

get

Récupère la valeur d’une statistique.

final response = await client.stats.get( GetStatisticParams( apiKey: 'user_api_key', type: 'monthly_sales', year: 2024, month: 1, ), ); print('Valeur: ${response.data}');

create

Crée une entrée de statistique.

final response = await client.stats.create( CreateStatisticParams( apiKey: 'user_api_key', type: 'monthly_sales', year: 2024, month: 1, amount: 15000, ), );
Last updated on