All Projects → eXamadeus → godaddypy

eXamadeus / godaddypy

Licence: BSD-3-Clause license
Python GoDaddy API Client

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to godaddypy

primer-child-velux
Velux is a Primer child theme with a clean, professional, and upscale design.
Stars: ✭ 14 (-73.58%)
Mutual labels:  godaddy
GodaddyWrapper.Net
.Net GoDaddy API Wrapper in C#
Stars: ✭ 15 (-71.7%)
Mutual labels:  godaddy
ddns
a multiple providers ddns script without dependencies
Stars: ✭ 47 (-11.32%)
Mutual labels:  godaddy
primer-child-escapade
Escapade is a Primer child theme with a unique sidebar navigation.
Stars: ✭ 15 (-71.7%)
Mutual labels:  godaddy
primer-child-stout
Stout is a GoDaddy Primer child theme with a bold vibe.
Stars: ✭ 13 (-75.47%)
Mutual labels:  godaddy
polynimbus
Multi-cloud infrastructure inventory and management tool, supporting AWS, Google Cloud, Azure, Oracle Cloud, Rackspace Cloud, Hetzner Cloud, Alibaba Cloud, e24cloud.com, Linode, Cloudflare, GoDaddy and Backblaze B2.
Stars: ✭ 70 (+32.08%)
Mutual labels:  godaddy
engineering
Jekyll website and blog showcasing open source projects by GoDaddy employees
Stars: ✭ 80 (+50.94%)
Mutual labels:  godaddy

downloads travis climate

GoDaddyPy

Python library useful for updating DNS settings through the GoDaddy v1 API.

Source located @ https://github.com/eXamadeus/godaddypy Migrated from @ https://github.com/eXamadeus-zz/godaddypy

This concept was spawned from observerss' pygodaddy @ https://github.com/observerss/pygodaddy.

Setup

First, go to https://developer.godaddy.com/keys/ and request a production API key and secret.

Note: Sometimes the production API keys don't seem to work correctly. Just delete it and request another one.

Second, install GoDaddyPy with pip.

$ pip install godaddypy

Examples

>>> from godaddypy import Client, Account
>>>
>>> my_acct = Account(api_key='PUBLIC_KEY', api_secret='SECRET_KEY')
>>> delegate_acct = Account(api_key='PUBLIC_KEY', api_secret='SECRET_KEY', delegate='DELEGATE_ID')
>>> client = Client(my_acct)
>>> delegate_client = Client(delegate_acct)
>>>
>>> client.get_domains()
['domain1.example', 'domain2.example']
>>>
>>> client.get_records('domain1.example', record_type='A')
[{'name': 'dynamic', 'ttl': 3600, 'data': '1.1.1.1', 'type': 'A'}]
>>>
>>> client.update_ip('2.2.2.2', domains=['domain1.example'])
True
>>>
>>> client.get_records('domain1.example')
[{'name': 'dynamic', 'ttl': 3600, 'data': '2.2.2.2', 'type': 'A'}, {'name': 'dynamic', 'ttl': 3600, 'data': '::1',
'type': 'AAAA'},]
>>>
>>> client.get_records('apple.com', record_type='A', name='@')
[{u'data': u'1.2.3.4', u'type': u'A', u'name': u'@', u'ttl': 3600}]
>>>
>>> client.update_record_ip('3.3.3.3', 'domain1.example', 'dynamic', 'A')
True
>>>
>>> client.add_record('apple.com', {'data':'1.2.3.4','name':'test','ttl':3600, 'type':'A'})
True
>>>
>>> client.delete_records('apple.com', name='test')
True
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].