0.0.2 • Published 8 years ago

pushbullet-api v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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: 'aaa@aaa.xyz'}, {channel_tag: 'channel'}, {client_iden: 'iden'}