aboutsummaryrefslogtreecommitdiff
path: root/create_test_account.py
diff options
context:
space:
mode:
Diffstat (limited to 'create_test_account.py')
-rw-r--r--create_test_account.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/create_test_account.py b/create_test_account.py
new file mode 100644
index 0000000..d3bf136
--- /dev/null
+++ b/create_test_account.py
@@ -0,0 +1,21 @@
+
+import base64
+import json
+import uuid
+
+import requests
+
+uniq = str(uuid.uuid4())[:8].upper()
+
+displayname = f"u{uniq}"
+sysname = f"s{uniq}"
+email = f"{uniq}@getshiftos.ml"
+password = "P@ssw0rd"
+
+auth = "Basic " + base64.b64encode(f"{email}:{password}".encode()).decode()
+
+token = requests.get("http://getshiftos.ml/Auth/Register",
+ params = {"appname": "ShiftGears", "appdesc": "ShiftGears testing software", "version": "45", "displayname": displayname, "sysname": sysname},
+ headers = {"Authentication": auth}).text.strip()
+
+print(token)