summaryrefslogtreecommitdiffstats
path: root/ovh/soapi
diff options
context:
space:
mode:
authortv <tv@xso>2011-08-22 13:47:25 +0200
committertv <tv@xso>2011-08-22 13:47:25 +0200
commit0208772d37c18b72c41557e6f4af04c7448839b7 (patch)
tree257de22351f6060bf5e5613a5de5562385cf1035 /ovh/soapi
parent624a21ce26f49950594f4c072d81cb73e29a18fa (diff)
ovh soapi domainCapabilities: initial commit
Diffstat (limited to 'ovh/soapi')
-rwxr-xr-xovh/soapi/domainCapabilities24
1 files changed, 24 insertions, 0 deletions
diff --git a/ovh/soapi/domainCapabilities b/ovh/soapi/domainCapabilities
new file mode 100755
index 00000000..edce3f0d
--- /dev/null
+++ b/ovh/soapi/domainCapabilities
@@ -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"
+
+#domainCapabilities
+result = soap.domainCapabilities(session, 'krebsco.de')
+print "domainCapabilities successfull"
+pp = pprint.PrettyPrinter(indent=4)
+pp.pprint(result) # your code here ...
+
+#logout
+soap.logout(session)
+print "logout successfull"