PUSH.co API#
A nodejs implementation for the PUSH.co Notification Service API.
Instalation:
npm
$ npm install pushco
Usage:
1. Load it
var pushco = ;
2. Create Instance:
var pusher = api_key api_secret;
3a. Push Message
pusher;
NOTE: To send to all channels use notification_type = '*'
3b. Push Url
pusher;
3c. Push Location
//as paramspusher; // or as arraypusher; // or as objectpusher;
4a. Listen for response
pusher;
4b. Listen for errors
pusher;
Todo:
-
Create User Class
- Authorize methods
- Subscription methods
- Clannel methods