initial commit

This commit is contained in:
skubiak
2015-01-07 13:16:55 +01:00
commit 580c43c9fc
11 changed files with 764 additions and 0 deletions

38
README.md Normal file
View File

@ -0,0 +1,38 @@
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.svenkubiak/jpushover/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.svenkubiak/jpushover)
[![Build Status](https://secure.travis-ci.org/svenkubiak/jpushover.png?branch=master)](http://travis-ci.org/svenkubiak/jpushover)
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>
2) 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.
[1]: https://pushover.net