Browse Source

adding missing getCSRF.py

NIX User 4 years ago
parent
commit
e892554ee8
1 changed files with 12 additions and 0 deletions
  1. 12 0
      getCSRF.py

+ 12 - 0
getCSRF.py

@@ -0,0 +1,12 @@
+import labkeyInterface
+import io
+import os
+
+net=labkeyInterface.labkeyInterface()
+fhome=os.path.expanduser('~')
+net.init(fhome+'/.labkey/network.json')
+
+csrf=net.getCSRF()
+print("CSRF={}".format(csrf))
+
+quit()