First Commit

This commit is contained in:
brotoskyj
2025-08-19 16:01:48 -04:00
commit 88a1bae574
7 changed files with 757 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import dotenv
import os
import utils.getdeviceevents
dotenv.load_dotenv()
url = "https://172.17.22.240:3129"
def apivalidation():
print("=== Welcome to the Airlock API Tool ===")
match os.getenv('APIKEY'):
case '':
print("Please add your API Key to the .env file")
case _:
menu()
def menu():
print("\n--- Main Menu ---")
print("1. Get All Events for Single Device")
print("2. Policy Enforcement Readiness")
print("3. Get Device with Highest Blocks in 7 Days")
while True:
choice = input("Enter Menu Item: ")
if choice == '1':
utils.getdeviceevents.devicehistory(url)
if __name__ == "__main__":
apivalidation()