Package Exports
- goroost
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (goroost) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Goroost NodeJS module
NodeJS API for https://goroost.com/
###Send Notification
var roost = require('goroost')('APP_KEY', 'APP_SECRET');
var notification = {
alert: 'Hello There',
url: 'http://goroost.com',
segments: ['registered'],
};
roost.send(notification, function (err, result) {
if (err) {
console.log(err);
} else {
console.log(result);
}
});