2.1.0 • Published 7 years ago
node-pushover-client v2.1.0
node-pushover-client
Send push notifications to iOS and Android using Pushover.
Usage
Register an application with Pushover.net to get your application and user tokens.
const Pushover = require('node-pushover-client');
const client = new Pushover({
token: 'KzGDORePK8gMaC0QOYAMyEEuzJnyUi',
user: 'uQiRzpo4DXghDmr9QzzfQu27cmVRsG'
});
client
.send({message: 'Hello World'})
.then(res => console.log(res));
You can set PUSHOVER_TOKEN
and PUSHOVER_USER
environment variables to use as defaults.
new Pushover().send({message: 'Hello World'});
There's also a static send
method.
Pushover.send({
token: 'KzGDORePK8gMaC0QOYAMyEEuzJnyUi',
user: 'uQiRzpo4DXghDmr9QzzfQu27cmVRsG',
message: 'Hello World'
});
Command Line Usage
$ npm -g install node-pushover-client
$ pushover --help
Options
The options object uses the same parameters outlined in Pushover's API.
Any snake_case
option can also be written in camelCase
.
2.1.0
7 years ago
2.0.0
7 years ago
1.4.0
9 years ago
1.3.9
10 years ago
1.3.8
10 years ago
1.3.7
10 years ago
1.3.4
10 years ago
1.3.3
10 years ago
1.3.1
10 years ago
1.3.0
10 years ago
1.2.3
10 years ago
1.2.2
10 years ago
1.2.1
10 years ago
1.2.0
10 years ago
1.1.4
10 years ago
1.1.3
10 years ago
1.1.2
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago