pushetta

0.0.1 • Public • Published

pushetta-npm

Simple node module for interact with Pushetta API. Pushetta is a cloud API to send push notifications to smartphones and web browsers, look at the site for more informations http://www.pushetta.com

Sample use

API Key can be obtained registering on Pushetta website.

Push a message

var Pushetta=require("pushetta");
var pushetta = new Pushetta("{API_KEY}");
pushetta.pushMessage("{CHANNEL NAME}", "Hello World");

Subscribe to receive notifications

var Pushetta = require('pushetta');
var ptta = new Pushetta("{API_KEY_HERE}");
ptta.subscribe("{CHANNEL NAME}", function (msg) {
    console.log(msg['message']);
});

Readme

Keywords

Package Sidebar

Install

npm i pushetta

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • guglielmino