boxcar-notification
boxcar api notification library
Install
$ npm install boxcar-notification
Usage
First, prepare boxcar api token from here
;let bn = 'API_TOKEN'; let notification = bn;notification;
Document
BoxcarNotification
class -
BoxcarNotification.constructor(API_TOKEN)
-
BoxcarNotification.VALID_SOUNDS
-
BoxcarNotification.API_URL
BoxcarNotification: bn
instance of -
bn.send(options) => Promise:notification
-
options.title
-
options.longMessage
-
options.sound
-
options.sourceName
-
options.iconUrl
-
notification.then(body)
-
notification.catch(error)