parse-push

0.0.3 • Public • Published

#node-parse-push

Library for using ParsePush - https://www.parse.com/docs/push_guide

##Install

npm install parse-push

Or check out from source

git clone git@github.com:hootware/node-parse-push.git
cd node-parse-push
npm link

##Usage

Send data to a number of channels

var Push = require("parse-push");

//Create new push instance
var push = new Push({
  applicationId: "MyApplicationId",
  restApiKey:    "MyRestApiKey"
});

//Now send to some channels
push.sendToChannels(["channel1","channel2","channel3"], {"foo":"bar"}, function(error, data){
  if (error) {
    console.error("Oh no it went wrong!: " + error.message);
  } else {
    console.log("It went well! ", data);
  }
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i parse-push

Weekly Downloads

2

Version

0.0.3

License

BSD

Last publish

Collaborators

  • hootware