def __init__(self, consumer_key, consumer_secret, debug=None, api_version="2.0", **kwargs):
        self.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:   # for people who don't read the code and just set debug=True
            self.debug = "print"

        self.consumer_key = consumer_key
        self.consumer_secret = consumer_secret

        self.session = OAuth1Session(self.consumer_key, self.consumer_secret)
Constructor that creates oauth2 consumer and client.
dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/api.py/Api.__init__