Update README.md
Typo fixed
This commit is contained in:
parent
88fc9df07e
commit
1a1f230e4d
@ -47,15 +47,15 @@ boolean valid = JPushover.newMessage()
|
|||||||
.withUser("MyUser")
|
.withUser("MyUser")
|
||||||
.validate();
|
.validate();
|
||||||
```
|
```
|
||||||
If you want more information and/or the response from the Pushover API, use the JPushoverResponse object.
|
If you want more information and/or the response from the Pushover API, use the PushoverResponse object.
|
||||||
```
|
```
|
||||||
JPushoverResponse jPushoverResponse = JPushover.newMessage()
|
PushoverResponse PushoverResponse = JPushover.newMessage()
|
||||||
.withToken("MyToken")
|
.withToken("MyToken")
|
||||||
.withUser("MyUser")
|
.withUser("MyUser")
|
||||||
.withMessage("MyMessage")
|
.withMessage("MyMessage")
|
||||||
.push();
|
.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.
|
The PushoverResponse 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user