API Wrapper for gotify RESTAPI for python3
Gotify server
Initialize the wrapper with the token you want to use
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
| Function |
Arguments |
Return |
| getApplications |
N/A |
JSON formatted list |
| createApplication |
Name, Description |
JSON formatted list |
| deleteApplication |
Application ID |
HTTP resopnse code |
| updateApplicationImage |
Application ID, Image Data |
HTTP response code |
clients class
| Function |
Arguments |
Return |
| getClients |
N/A |
JSON formatted list |
| createClient |
Name |
JSON formatted list |
| deleteClient |
Client ID |
HTTP response code |
msgManager class
| Function |
Arguments |
Return |
| getMessagesByApp |
Application ID |
JSON formatted list |
| deleteAllMessagesFromApp |
Application ID |
HTTP response code |
| getAllMesages |
N/A |
JSON formatted list |
| deleteAllMessages |
N/A |
HTTP response code |
| deleteMessagesByID |
Message ID |
HTTP response code |
| getStream |
N/A |
JSON formatted list |
messages class
| Function |
Arguments |
Return |
| sendMessage |
Title, Message |
JSON formatted list |
users class
| Function |
Arguments |
Return |
| getCurrentUser() |
N/A |
JSON formatted list |
| changeUserPassword |
Password |
JSON formatted list |
| getUsers |
N/A |
JSON formatted list |
| createUser |
Admin, Username, Password |
JSON formatted list |
| getUserByID |
User ID |
JSON formatted list |
| updateUserByID |
User ID, Admin, Username, Password |
JSON formatted list |
| deleteUserByID |
User ID |
HTTP response code |
utils class
| Function |
Arguments |
Return |
| getVersion |
N/A |
JSON formatted list |
| basicAuth |
Username, password |
JSON formatted list |