keboola/sapi-python-client

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?

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:

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