1.2 KiB
1.2 KiB
JPushover
Convenient class for sending messages to Pushover in Java project
Usage
-
Add the jpushover dependency to your pom.xml:
de.svenkubiak jpushover x.x.x -
Use the JPushover object were need
new JPushover() .token("MyToken") .user("MyUser") .message("MyPusher") .push();
If you want more information and/or the response from Pushover API, use the JPushoverResponse object.
JPushoverResponse jPushoverResponse = new JPushover()
.token("MyToken")
.user("MyUser")
.message("MyPusher")
.push();
JPushoverResponse will return the raw HTTP status code, along with the raw JSON response and a convenient boolean if the request was successful or not.