summaryrefslogtreecommitdiffstats
path: root/ovh/soapi/zoneEntryList
blob: 7c032462542ed094ea6572acb24b2eb8580b3fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"