From fd4431432fc1eab14b969cb8ed9377bb5444f3a9 Mon Sep 17 00:00:00 2001 From: benjamyn Date: Sun, 11 Nov 2018 20:37:11 +1100 Subject: [PATCH] Added example code --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index badd8f5..69faa4d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,19 @@ Initialize the wrapper with the token you want to use -i.e: gotipy_usr = gotipy.gotipy("user token", "https://URL.TLD") +``` +client = gotipy.clients("C3MgnR4b-iMj.fT","http://gotify.benjamyn.love:8080") +app = gotipy.messages("AJww.G_kdoV7Jzs","http://gotify.benjamyn.love:8080") + +clientList = client.getClients() + +title = "Example" +msg = "This is an example :)" + +response = app.sendMessage(title, msg) +... + +```

applications class