0.1.0 • Published 7 years ago

taplytics-node v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Taplytics Node SDK

Currently only supports push notifications.

Usage

const Taplytics = require('taplytics-node');
const client = new Taplytics({
  api_token: 'API_TOKEN'
})


// Send a notification
client.push.post({}, {
  notification: {
    alert: 'hello!'
  }
})
.then(() => console.log('success!'))
.catch((err) => console.error(err));

// Get notifications

client.push.get()
.then((pushes) => console.log(pushes))
.catch((err) => console.error(err));

License

MIT