0.0.2 • Published 9 years ago

node-pushy v0.0.2

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

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);
    });
0.0.2

9 years ago

0.0.1

9 years ago