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

Notifications (NotificationApi)

Le module NotificationApi gère Firebase, les templates et les logs.

Accès : client.notification

Méthodes

getFirebaseConfig

Récupère la configuration Firebase.

final response = await client.notification.getFirebaseConfig( GetFirebaseConfigParams(apiKey: 'user_api_key'), );

setFirebaseConfig

Configure Firebase.

final response = await client.notification.setFirebaseConfig( SetFirebaseConfigParams( apiKey: 'user_api_key', projectId: 'firebase_project', isActive: true, ), );

getTemplates

Récupère les templates.

final response = await client.notification.getTemplates( GetNotificationTemplatesParams(apiKey: 'user_api_key'), );

setTemplate

Crée ou met à jour un template.

final response = await client.notification.setTemplate( SetNotificationTemplateParams( apiKey: 'user_api_key', eventType: 'ORDER_RECEIVED', title: 'Nouvelle commande', body: 'Vous avez une nouvelle commande', isActive: true, ), );

getLogs

Récupère les logs.

final response = await client.notification.getLogs( GetNotificationLogsParams( apiKey: 'user_api_key', limit: 50, ), );
Last updated on