This commit is contained in:
David Arranz 2019-11-06 17:36:03 +01:00
parent 7471559d66
commit f2ec486fd4

View File

@ -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": "<RouterName>",
* "paramId": "23",
* }
* }
*}
*/
//eventId
//tittle
//message