2015-01-07 13:16:55 +01:00
[](https://maven-badges.herokuapp.com/maven-central/de.svenkubiak/jpushover)
2015-01-07 20:16:49 +01:00
[](http://travis-ci.org/svenkubiak/JPushover)
2015-01-07 13:16:55 +01:00
2015-01-07 20:29:25 +01:00
If this software is useful to you, you can support further development by using Flattr. Thank you!
[](https://flattr.com/submit/auto?user_id=svenkubiak& url=https://github.com/svenkubiak/JPushover& title=JPushover& language=en& tags=github& category=software)
2015-01-08 08:35:01 +01:00
2015-01-07 13:16:55 +01:00
JPushover
================
Convenient class for sending messages to [Pushover][1] in Java project
Usage
------------------
1) Add the jpushover dependency to your pom.xml:
< dependency >
< groupId > de.svenkubiak< / groupId >
< artifactId > jpushover< / artifactId >
< version > x.x.x< / version >
< / dependency >
2015-01-07 20:29:25 +01:00
2) Use the JPushover object with the required informations were you want
2015-01-07 13:16:55 +01:00
new JPushover()
.token("MyToken")
.user("MyUser")
2015-01-07 16:39:44 +01:00
.message("MyMessage")
2015-01-07 13:16:55 +01:00
.push();
2015-01-07 20:29:25 +01:00
You can additionally add all available options from the official [Pushover documentation][2]
If you want more information and/or the response from the Pushover API, use the JPushoverResponse object.
2015-01-07 13:16:55 +01:00
JPushoverResponse jPushoverResponse = new JPushover()
.token("MyToken")
.user("MyUser")
2015-01-07 16:39:44 +01:00
.message("MyMessage")
2015-01-07 13:16:55 +01:00
.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.
2015-01-07 20:29:25 +01:00
[1]: https://pushover.net
2015-01-07 20:30:15 +01:00
[2]: https://pushover.net/api