make api_domain optional parameter in Client class
Closed this issue · 2 comments
pocin commented
class Client:
def __init__(self, token, api_domain='https://connection.keboola.com'):
pass
so that you can init the client like this
client = Client('your-token')
What are the alternative api_domains anyway?
Halama commented
I wouldn't recommend to add default value there, connection URL should be always passed otherwise integration won't wok against other stacks.
At the moment we have two KBC stacks:
- us-east-1 - https://connection.keboola.com
- eu-central-1 - https://connection.eu-central-1.keboola.com/ (in BETA now)
eq. if you are using this client in KBC docker extension you should set api endpoint from KBC_URL
env variable https://developers.keboola.com/extend/common-interface/environment/#environment-variables
pocin commented
Ah okay