def __init__(self, subdomain, api_key):
        tmpl = '{0}.cartodb.com/api'
        self.apiroot = http.quote_any(tmpl.format(port.to_u(subdomain)))
        self.apiroot = 'https://' + self.apiroot

        self.api_key = api_key
        self.add_filter(self.add_api_key)
Create a CartoDB service.
dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/cartodb/service.py/CartoDB.__init__