Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Params (or pairs) on post_notification_json endpoint #52

Open
rodrigoic23 opened this issue Mar 9, 2018 · 0 comments
Open

Params (or pairs) on post_notification_json endpoint #52

rodrigoic23 opened this issue Mar 9, 2018 · 0 comments

Comments

@rodrigoic23
Copy link

rodrigoic23 commented Mar 9, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant