Skip to content

Instantly share code, notes, and snippets.

@loeti82
Created October 24, 2019 14:43
Show Gist options
  • Save loeti82/389262f3cf1e37338a0efbc68cdad3f6 to your computer and use it in GitHub Desktop.
Save loeti82/389262f3cf1e37338a0efbc68cdad3f6 to your computer and use it in GitHub Desktop.
def __init__(self):
self.openapi_config = Configuration()
self.openapi_instance = ApiApi(ApiClient(self.openapi_config))
def configure_openapi(self, host, access_token, debug: bool = True):
try:
self.openapi_config.host = host
self.openapi_config.access_token = access_token
self.openapi_config.debug = debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment