def __init__(self, key, secret, api_version=API_VERSION, host="api.simplegeo.com", port=80): SGClient.__init__(self, key, secret, api_version=api_version, host=host, port=port) self.endpoints['context'] = 'context/%(lat)s,%(lon)s.json' self.endpoints['context_by_ip'] = 'context/%(ip)s.json' self.endpoints['context_by_my_ip'] = 'context/ip.json' self.endpoints['context_by_address'] = 'context/address.json?address=%(address)s'
def __init__(self, key, secret, api_version=API_VERSION, host="api.simplegeo.com", port=80): SGClient.__init__(self, key, secret, api_version=api_version, host=host, port=port) self.endpoints.update(endpoints)