summaryrefslogtreecommitdiffstats
path: root/ovh
diff options
context:
space:
mode:
authortv <tv@xso>2011-08-22 14:58:14 +0200
committertv <tv@xso>2011-08-22 14:58:14 +0200
commitfebfbe5c4f2e5481b12d0142c08dd45a28cbf4b1 (patch)
tree3da93c7efde4c972ae38a7588ecfb10d4502564c /ovh
parent93be79e976ffd53bcae2f6f9870a486e8fbd8b2d (diff)
ovh soapi zoneEntryList: initial commit
Diffstat (limited to 'ovh')
-rwxr-xr-xovh/soapi/zoneEntryList24
1 files changed, 24 insertions, 0 deletions
diff --git a/ovh/soapi/zoneEntryList b/ovh/soapi/zoneEntryList
new file mode 100755
index 00000000..7c032462
--- /dev/null
+++ b/ovh/soapi/zoneEntryList
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+
+from os import environ
+import pprint
+from SOAPpy import WSDL
+
+soap = WSDL.Proxy('https://www.ovh.com/soapi/soapi-re-1.24.wsdl')
+
+username = environ['KREBS_OVH_USER']
+password = environ['KREBS_OVH_PASS']
+
+#login
+session = soap.login(username, password, 'de', 0)
+print "login successfull"
+
+#zoneEntryList
+result = soap.zoneEntryList(session, 'krebsco.de')
+print "zoneEntryList successfull"
+pp = pprint.PrettyPrinter(indent=4)
+pp.pprint(result) # your code here ...
+
+#logout
+soap.logout(session)
+print "logout successfull"