# mycore_api.api.NotificationApi ## Load the API package ```dart import 'package:mycore_api/api.dart'; ``` All URIs are relative to *https://localhost:5001* Method | HTTP request | Description ------------- | ------------- | ------------- [**notificationCreateSimpleNotification**](NotificationApi.md#notificationcreatesimplenotification) | **POST** /Notification/all | Create a fcm notification [**notificationCreateSimpleNotificationForSpecificUser**](NotificationApi.md#notificationcreatesimplenotificationforspecificuser) | **POST** /Notification/home/{homeId} | Create a fcm notification for a specific home # **notificationCreateSimpleNotification** > bool notificationCreateSimpleNotification(notificationDTO) Create a fcm notification ### Example ```dart import 'package:mycore_api/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = NotificationApi(); final notificationDTO = NotificationDTO(); // NotificationDTO | notificationDTO try { final result = api_instance.notificationCreateSimpleNotification(notificationDTO); print(result); } catch (e) { print('Exception when calling NotificationApi->notificationCreateSimpleNotification: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **notificationDTO** | [**NotificationDTO**](NotificationDTO.md)| notificationDTO | ### Return type **bool** ### Authorization [bearer](../README.md#bearer) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **notificationCreateSimpleNotificationForSpecificUser** > bool notificationCreateSimpleNotificationForSpecificUser(homeId, notificationDTO) Create a fcm notification for a specific home ### Example ```dart import 'package:mycore_api/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = NotificationApi(); final homeId = homeId_example; // String | homeId final notificationDTO = NotificationDTO(); // NotificationDTO | notificationDTO try { final result = api_instance.notificationCreateSimpleNotificationForSpecificUser(homeId, notificationDTO); print(result); } catch (e) { print('Exception when calling NotificationApi->notificationCreateSimpleNotificationForSpecificUser: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **homeId** | **String**| homeId | **notificationDTO** | [**NotificationDTO**](NotificationDTO.md)| notificationDTO | ### Return type **bool** ### Authorization [bearer](../README.md#bearer) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)