diff options
author | tv <tv@xso> | 2011-08-22 13:47:25 +0200 |
---|---|---|
committer | tv <tv@xso> | 2011-08-22 13:47:25 +0200 |
commit | 4fe42821c4832342a5e7015267dfe60066522d1b (patch) | |
tree | eb65b48a8ef472dd9b29e22a0d6de03a5d0698aa /ovh/soapi/domainCapabilities | |
parent | c2117a9064fcee0d287fbd8d164eef57d6b6c275 (diff) |
ovh soapi domainCapabilities: initial commit
Diffstat (limited to 'ovh/soapi/domainCapabilities')
-rwxr-xr-x | ovh/soapi/domainCapabilities | 24 |
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" |