git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
forge/script/PlcApi/showKeys.py
@@ -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']
+