https://github.com/cak/js-pushover
A simple Pushover library
https://github.com/cak/js-pushover
Last synced: about 1 month ago
JSON representation
A simple Pushover library
- Host: GitHub
- URL: https://github.com/cak/js-pushover
- Owner: cak
- License: mit
- Created: 2018-09-29T23:27:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T09:11:06.000Z (over 1 year ago)
- Last Synced: 2025-01-14T11:17:10.669Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# js-pushover
js-pushover is a simple [Pushover](https://pushover.net) library and is not written or supported by Superblock (the creators of Pushover).
## Using js-pushover
Import jspushover into your JavaScript file.
`const jsPushover = require('../js-pushover');`
Create object with following values (token, user and message are mandatory.
(More information at [Pushover: API](https://pushover.net/api)).
```javascript
const jsPushoverObj = {
token: "your Pushover token",
user: "your Pushover user key",
message: "message",
};
```
Additionally, you can add the following properties: device, title, url, url_title, priority, sound and timestamp.
```javascript
const jsPushoverObj = {
token: "",
user: "",
message: "",
device: "",
title: "",
url: "",
url_title: "",
priority: "",
sound: "",
timestamp: "",
};
```
Then call the js-pushover Push method:
`jsPushover.Push(jsPushoverObj)`
*Call will return true is successful and false if unsuccessful*