def main(): api_url, username, password = get_account_data(True) inwx_conn = domrobot(api_url, username, password, 'en', False) print prettyprint.domains(inwx_conn.nameserver.list()['domains']) # get the list of all domains: domains = inwx_conn.nameserver.list()['domains'] for domain in domains: domain = domain['domain'] print "Logs for domain %s:" % domain print prettyprint.domain_log(inwx_conn.domain.log({'domain': domain})['domain'])
def main(): api_url, username, password = get_account_data(True) inwx_conn = domrobot(api_url, username, password, 'en', False) print prettyprint.domains(inwx_conn.nameserver.list()['domains']) # get the list of all domains: domains = inwx_conn.nameserver.list()['domains'] for domain in domains: domain = domain['domain'] print "Logs for domain %s:" % domain print prettyprint.domain_log( inwx_conn.domain.log({'domain': domain})['domain'])
def main(): api_url, username, password = get_account_data(True) inwx_conn = domrobot(api_url, username, password, 'en', False) print prettyprint.domains(inwx_conn.nameserver.list()['domains'])