def read_config(self):
        with open(self.config_file) as cfg:
            try:
                self.config.read_file(cfg)
            except AttributeError:  # Not python 3.X fallback
                self.config.readfp(cfg)
        self.client_id = self.config.get('misfit', 'client_id')
        self.client_secret = self.config.get('misfit', 'client_secret')
        self.access_token = self.config.get('misfit', 'access_token')
Read credentials from the config file
dataset/ETHPy150Open orcasgit/python-misfit/misfit/cli.py/MisfitCli.read_config