getCSRF.py 210 B

123456789101112
  1. import labkeyInterface
  2. import io
  3. import os
  4. net=labkeyInterface.labkeyInterface()
  5. fhome=os.path.expanduser('~')
  6. net.init(fhome+'/.labkey/network.json')
  7. csrf=net.getCSRF()
  8. print("CSRF={}".format(csrf))
  9. quit()