oh-my-pushover
v1.1.3
Published
A simple TypeScript handler for calling the Pushover API
Maintainers
Readme
Pushover
This is a handler to handle calls to the Pushover API.
Its usage is simple, create a new instance of the class:
const pushoverHandler = new PushoverHandler(
{
user: "testUser",
token: "testToken",
}
);then make a call like:
await pushoverHandler.sendMessage("test message", Priority.EMERGENCY);Note: The Priority enum is also exported from this package.
You can also check to see if the handler has been given correct credentials, and can successfully call the API by doing:
const canCallApi = await pushoverHandler.canCallApi(); // returns a booleanNotes:
This package uses oh-my-got-so-simple - a wrapper for got.
