Nordeus / pushkin

Pushkin is a free open source tool for sending push notifications
MIT License
269 stars 51 forks source link

Params (or pairs) on post_notification_json endpoint #52

Open rodrigoic23 opened 6 years ago

rodrigoic23 commented 6 years ago

Hi! I was using this library and it's great. I'm sending notifications like this

const notifications = await usuarios.map(u => { return { login_id: u.id, title: notificacion.titulo, content: notificacion.mensaje, screen: 'home' } })

enviado = http.post('/post_notification_json', JSON.stringify({ events: notifications })) .then(() => true) .catch((err) => { logger.info('No se pudo enviar la notificacion: ' + err.message) return false })

The question is, is there any way to add custom params, like 'pairs' param on post_events_json endpoint?

Thank you so much