[Gandi][API] Create a domain name with account handle in Python

[Gandi][API] Create a domain name with account handle in Python. #!/usr/bin/python3 import pprint import xmlrpc.client import sys import string import random pp = pprint.PrettyPrinter(indent = 4) api = xmlrpc.client.ServerProxy('https://rpc.ote.gandi.net/xmlrpc/') # INSERT YOUR OWN API KEY apikey = '<APIKEY>l' def generate_domainname(size = 10): domainname = '' . join(random.SystemRandom().choice(string.ascii_lowercase + string.digits) for _ in range(size)) return 'api' […]

Lire la suite [Gandi][API] Create a domain name with account handle in Python
décembre 14, 2015