Update README.md
This commit is contained in:
12
README.md
12
README.md
@ -11,21 +11,21 @@ Usage
|
|||||||
------------------
|
------------------
|
||||||
|
|
||||||
1) Add the jpushover dependency to your pom.xml:
|
1) Add the jpushover dependency to your pom.xml:
|
||||||
|
```
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>de.svenkubiak</groupId>
|
<groupId>de.svenkubiak</groupId>
|
||||||
<artifactId>jpushover</artifactId>
|
<artifactId>jpushover</artifactId>
|
||||||
<version>x.x.x</version>
|
<version>x.x.x</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
```
|
||||||
2) Use the JPushover object with the required informations were you want
|
2) Use the JPushover object with the required informations were you want
|
||||||
|
```
|
||||||
JPushover.build()
|
JPushover.build()
|
||||||
.wihtToken("MyToken")
|
.withToken("MyToken")
|
||||||
.withUser("MyUser")
|
.withUser("MyUser")
|
||||||
.withMessage("MyMessage")
|
.withMessage("MyMessage")
|
||||||
.push();
|
.push();
|
||||||
|
```
|
||||||
You can additionally add all available options from the official [Pushover documentation][2]
|
You can additionally add all available options from the official [Pushover documentation][2]
|
||||||
|
|
||||||
You can also validate a user and token using the following method
|
You can also validate a user and token using the following method
|
||||||
@ -46,4 +46,4 @@ If you want more information and/or the response from the Pushover API, use the
|
|||||||
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.
|
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.
|
||||||
|
|
||||||
[1]: https://pushover.net
|
[1]: https://pushover.net
|
||||||
[2]: https://pushover.net/api
|
[2]: https://pushover.net/api
|
||||||
|
Reference in New Issue
Block a user