np

node-pushy

NodeJS wrapper for Pushy API

Showing:

Popularity

Downloads/wk

4

GitHub Stars

1

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

165.7KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-pushy

npm version

A node wrapper for Pushy

More information on Pushy.

Installation

NPM

npm install node-pushy

Node

Add to package.json: "pushy": "0.0.1".

Usage

Requires:

  • A pushy.me account
  • An api key
  • A list of android user tokens generated from the Pushy SDK
// Create a pushy object
var pushy = require('node-pushy')(<api_key>);

// or
var pushy = require('node-pushy')();
pushy.setApiKey(<api_key>);

// Send push notifications
pushy
    .send({message: "You're a bouse!"}, [<userToken1>, <userToken2>])
    .then(function(statusCode){
        console.log('Success!');
    })
    .catch(function(error){
        console.log('Failed: ' + error.message);
    });

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100