pushbullet-api

0.0.2 • Public • Published

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'}

Readme

Keywords

Package Sidebar

Install

npm i pushbullet-api

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • rasmuslindroth