File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def getchecksum():
2121 md5_hash .update (content )
2222 digest = md5_hash .hexdigest ()
2323 return digest
24+
2425keyauthapp = api (
2526 name = "" ,
2627 ownerid = "" ,
@@ -68,6 +69,42 @@ def getchecksum():
6869 print ("\n Not Valid Option" )
6970 sys .exit ()
7071
72+
73+ #region Extra Functions
74+
75+ #* Download Files form the server to your computer using the download function in the api class
76+ #bytes = keyauthapp.download("FILEID")
77+ #f = open("example.exe", "wb")
78+ #f.write(bytes)
79+ #f.close()
80+
81+
82+ #* Set up user variable
83+ #keyauthapp.setvar("varName", "varValue")
84+
85+ #* Get user variable and print it
86+ #data = keyauthapp.getvar("varName")
87+ #print(data)
88+
89+ #* Get normal variable and print it
90+ #data = keyauthapp.var("varName")
91+ #print(data)
92+
93+ #* Log message to the server and then to your webhook what is set on app settings
94+ #keyauthapp.log("Message")
95+
96+ #* Get if the user pc have been blacklisted
97+ #print(f"Blacklisted? : {keyauthapp.checkblacklist()}")
98+
99+ #* See if the current session is validated
100+ #print(f"Session Validated?: {keyauthapp.check()}")
101+
102+
103+ #* example to send normal request with no POST data
104+ #data = keyauthapp.webhook("WebhookID", "?type=resetuser&user=username")
105+
106+ #endregion
107+
71108print ("\n User data: " )
72109print ("Username: " + keyauthapp .user_data .username )
73110print ("IP address: " + keyauthapp .user_data .ip )
You can’t perform that action at this time.
0 commit comments