@@ -47,7 +47,7 @@ class CartoDBBase(object):
47
47
""" basic client to access cartodb api """
48
48
MAX_GET_QUERY_LEN = 2048
49
49
50
- def __init__ (self , cartodb_domain , host = 'cartodb .com' , protocol = 'https' , api_version = 'v2' ):
50
+ def __init__ (self , cartodb_domain , host = 'carto .com' , protocol = 'https' , api_version = 'v2' ):
51
51
self .resource_url = RESOURCE_URL % {'user' : cartodb_domain , 'domain' : host , 'protocol' : protocol , 'api_version' : api_version }
52
52
53
53
def req (self , url , http_method = "GET" , http_headers = None , body = '' ):
@@ -95,7 +95,7 @@ class CartoDBOAuth(CartoDBBase):
95
95
"""
96
96
This client allows to auth in cartodb using oauth.
97
97
"""
98
- def __init__ (self , key , secret , email , password , cartodb_domain , host = 'cartodb .com' , protocol = 'https' , proxy_info = None , * args , ** kwargs ):
98
+ def __init__ (self , key , secret , email , password , cartodb_domain , host = 'carto .com' , protocol = 'https' , proxy_info = None , * args , ** kwargs ):
99
99
super (CartoDBOAuth , self ).__init__ (cartodb_domain , host , protocol , * args , ** kwargs )
100
100
101
101
self .consumer_key = key
@@ -132,11 +132,11 @@ def req(self, url, http_method="GET", http_headers=None, body=''):
132
132
133
133
class CartoDBAPIKey (CartoDBBase ):
134
134
"""
135
- this class provides you access to auth CartoDB API using your API. You can find your API key in https://USERNAME.cartodb .com/your_apps/api_key.
135
+ this class provides you access to auth CartoDB API using your API. You can find your API key in https://USERNAME.carto .com/your_apps/api_key.
136
136
this method is easier than use the oauth authentification but if less secure, it is recommended to use only using the https endpoint
137
137
"""
138
138
139
- def __init__ (self , api_key , cartodb_domain , host = 'cartodb .com' , protocol = 'https' , proxy_info = None , * args , ** kwargs ):
139
+ def __init__ (self , api_key , cartodb_domain , host = 'carto .com' , protocol = 'https' , proxy_info = None , * args , ** kwargs ):
140
140
super (CartoDBAPIKey , self ).__init__ (cartodb_domain , host , protocol , * args , ** kwargs )
141
141
self .api_key = api_key
142
142
0 commit comments