From d8fcc308a71c907b0d1e92a51c05916929556a03 Mon Sep 17 00:00:00 2001 From: Sven Kubiak Date: Sun, 21 Jan 2018 18:20:28 +0100 Subject: [PATCH] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 944d233..3c749a2 100644 --- a/README.md +++ b/README.md @@ -11,21 +11,21 @@ Usage ------------------ 1) Add the jpushover dependency to your pom.xml: - +``` de.svenkubiak jpushover x.x.x - +``` 2) Use the JPushover object with the required informations were you want - +``` JPushover.build() - .wihtToken("MyToken") + .withToken("MyToken") .withUser("MyUser") .withMessage("MyMessage") .push(); - +``` 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 @@ -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. [1]: https://pushover.net -[2]: https://pushover.net/api \ No newline at end of file +[2]: https://pushover.net/api