nkmrtty / gehirn-client

API client for Gehitn Web Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gehirn-client

An API client for Gehitn Web Services

Requirements

  • Python 2.7.x

Examples

DDNS

import urllib2
import json
from gehirn import GehirnClient


# get Grobal IP
url = 'http://httpbin.org/ip'
gip = json.loads(urllib2.urlopen(url).read())['origin']

zone_name = 'your.zone'
record_name = 'record.your.zone'
values = {u'records': [{u'address': unicode(gip)}]}

c = GehirnClient()
c.update_record(zone_name, record_name, values)

About

API client for Gehitn Web Services

License:MIT License


Languages

Language:Python 100.0%