pushbullet-api
v0.0.2
Published
Node module for the pushbullet API
Downloads
6
Readme
pushbullet-api
A node module for the pushbullet API using promises. This module is still in development, so many features are missing at this moment.
##How to use
const pushbulletAPI = require('pushbullet-api');
const pushbullet = new pushbulletAPI('access-token');
##Methods
###Me
See the official docs for reference of the returning object
pushbullet.me().then(res => {
//resolved
}).catch(err => {
//error
});
###pushNote, pushLink See the official docs for reference of the returning object
pushbullet.pushNote('title', 'body', device).then(res => {
//resolved
}).catch(err => {
//error
});
pushbullet.pushLink('title', 'body', 'url', device).then(res => {
//resolved
}).catch(err => {
//error
});
device
is optional, skipping this parameter will send to all devices.
The device can be either a Device
object or defined as an object.
{device_iden: 'iden'}
, {email: '[email protected]'}
, {channel_tag: 'channel'}
, {client_iden: 'iden'}