0.0.1 • Published 7 years ago

onesignaleasypush v0.0.1

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

Onesignalmadeeasy

A beta-test nodejs package to just make the sending push via nodejs easier. It is only to send "senderName" sent the message. Refer Onesignal for thorough api and its usage.

Usage

First, install the package using npm:

npm install onesignaleasypush --save

Then, require the package and use it like so:

var onesignaleasypush = require('onesignaleasypush');
onesignaleasypush.setCredentials("onesignaleasypush", "onesignalAppId");
onesignaleasypush.pushMessage("senderId", "playerid From onesignal", "senderName");

(senderId is just to retrieve information which will be sent in pushdata).

License

MIT