Parcourir la source

adding missing getCSRF.py

NIX User il y a 5 ans
Parent
commit
e892554ee8
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  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()