Skip to content

Commit fe4f667

Browse files
authored
Added Extra function usages
1 parent 9c2ae44 commit fe4f667

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

main.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def getchecksum():
2121
md5_hash.update(content)
2222
digest = md5_hash.hexdigest()
2323
return digest
24+
2425
keyauthapp = api(
2526
name = "",
2627
ownerid = "",
@@ -68,6 +69,42 @@ def getchecksum():
6869
print("\nNot 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+
71108
print("\nUser data: ")
72109
print("Username: " + keyauthapp.user_data.username)
73110
print("IP address: " + keyauthapp.user_data.ip)

0 commit comments

Comments
 (0)