Explorar o código

adding missing getCSRF.py

NIX User %!s(int64=5) %!d(string=hai) anos
pai
achega
e892554ee8
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  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()