

def __init__(self, consumer_key, consumer_secret, debug=None, api_version='2.0', **kwargs):
    "Constructor that creates oauth2 consumer and client.\n\n        Required Arguments:\n            consumer_key: string - your api key\n            consumer_secret: string - you api secret\n\n        Optional Arguments:\n            debug: if used, set to either 'print' or 'log' - if print, debug\n                messages will be sent to stdout. If set to 'log' will send\n                to logging.debug()\n        "
    api_version.url_base = kwargs.get('url_base')
    if (self.url_base is None):
        self.url_base = 'https://api.context.io'
    self.api_version = api_version
    self.debug = debug
    if (self.debug is True):
        self.debug = 'print'
    self.consumer_key = consumer_key
    self.consumer_secret = consumer_secret
    self.session = OAuth1Session(self.consumer_key, self.consumer_secret)

dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/api.py Api.__init__/VarMisuse@27/183 `self`->`api_version`