2018-07-23 09:58:21 +02:00
2018-04-11 14:51:43 +02:00
2015-01-07 13:16:55 +01:00
2018-07-23 09:58:21 +02:00
2018-01-21 18:22:36 +01:00
2018-07-18 11:12:05 +02:00
2018-01-21 18:22:05 +01:00
2018-07-23 09:58:21 +02:00

Maven Central Build Status

JPushover

Convenient class for sending messages to Pushover in Java.

Usage

  1. Add the jpushover dependency to your pom.xml:
<dependency>
	<groupId>de.svenkubiak</groupId>
        <artifactId>jpushover</artifactId>
        <version>x.x.x</version>
</dependency>
  1. Use the JPushover object with the required informations were you want
JPushover.build()
	.withToken("MyToken")
	.withUser("MyUser")
	.withMessage("MyMessage")
	.push();

You can additionally add all available options from the official Pushover documentation

You can also validate a user and token using the following method

boolean valid = JPushover.build()
	.withToken("MyToken")
	.withUser("MyUser")
	.validate();

If you want more information and/or the response from the Pushover API, use the JPushoverResponse object.

JPushoverResponse jPushoverResponse = JPushover.build()
	.withToken("MyToken")
	.withUser("MyUser")
	.withMessage("MyMessage")
	.push();

The 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.

Description
Java 11 compatible fork of https://github.com/svenkubiak/JPushover
Readme 269 KiB
Languages
Java 99.5%
Shell 0.5%