Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1aa684ad7c
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (28 sloc) 1.376 kb
#!/usr/bin/env python
# -*- encoding: UTF8 -*-
# author: Philipp Klaus, philipp.klaus →AT→ gmail.com
# This file is part of python-inwx-xmlrpc.
#
# python-inwx-xmlrpc is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# python-inwx-xmlrpc is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with python-inwx-xmlrpc. If not, see <http://www.gnu.org/licenses/>.
###########################################################################
####### This is an example of how to use the inwx class to ########
####### list all your domains via the InterNetworX XMLRPC API. ########
from inwx import inwx, prettyprint
from configuration import get_account_data
def main():
api_url, username, password, secure = get_account_data(True)
inwx_conn = inwx(api_url, username, password, 'en', secure, False)
print prettyprint.nameserversets(inwx_conn.nameserverset.list()['nsset'])
if __name__ == '__main__':
main()
Jump to Line
Something went wrong with that request. Please try again.