FORGE: Added including script
[myslice.git] / forge / script / PlcApi / showKeys.py
diff --git a/forge/script/PlcApi/showKeys.py b/forge/script/PlcApi/showKeys.py
new file mode 100755 (executable)
index 0000000..0c74e6f
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+from Auth import *
+
+keyId = plc_api.GetKeys(auth, {'person_id': 249241}, ['key_id', 'key'])
+for key in keyId:
+               print "A new key:"
+               print "Key value ->", key['key']
+               print "Key id ->",key['key_id']
+