taplytics-node

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i taplytics-node

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nimsical