From f2ec486fd4ce3847cce9150d59406f68d2c9b849 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 6 Nov 2019 17:36:03 +0100 Subject: [PATCH] . --- .../notification/notification.controller.js | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/modules/notification/notification.controller.js b/modules/notification/notification.controller.js index 35e70fb..f0d21cd 100644 --- a/modules/notification/notification.controller.js +++ b/modules/notification/notification.controller.js @@ -16,6 +16,31 @@ const controllerOptions = { MODULE_NAME }; const extraControllers = { sendNotificationEvent: () => { + + /** + * notificationSample = { + * "title": "título de la notificación", + * "message": "cuerpo de la notificación", + * "recipients": { + * "eventId": "xxx-xxx-xxx-xxx", + * "segment": "ALL" | "ALL_VALIDATED" | "ALL_NOT_VALIDATED" | + * "PARTNERS_ALL" | "PARTNERS_VALIDATED" | "PARTNERS_NOT_VALIDATED" | + * "COLLEGE_ALL" | "COLLEGE_VALIDATED" | "COLLEGE_NOT_VALIDATED" + * }, + * "data": { + * "type": "message", + * "title": "Título del mensaje", + * "message": "Cuerpo del mensaje", + * "button": { + * "caption": "Etiqueta del boton", + * "url": "https://www.site.es", + * "screen": "", + * "paramId": "23", + * } + * } + *} + */ + //eventId //tittle //message