Added example code
This commit is contained in:
parent
261837112f
commit
fd4431432f
14
README.md
14
README.md
@ -4,7 +4,19 @@
|
|||||||
|
|
||||||
Initialize the wrapper with the token you want to use
|
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)
|
||||||
|
...
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
<h3><b>applications class</b></h3>
|
<h3><b>applications class</b></h3>
|
||||||
<table style="width:100%">
|
<table style="width:100%">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user