strava_map/stravauth/stravauth.py
def read_creds(self, path=None):
        """Reads Strava Credentials from an existing credentials file.

        Args:
            path (str, optional): Path to an existing credentials file. Defaults to None.
        """
        
        # make filename local
        if path:
            self.path = path
        else:
            self.path = '.credentials.json'
        
        with open(self.path) as f:
            self.credentials = json.load(f)
            self.client_id = int(self.credentials['client_id'])
            self.client_secret = str(self.credentials['client_secret'])
            self.access_token = self.credentials['access_token']
            self.refresh_token = self.credentials['refresh_token']
            self.expires_at = self.credentials['expires_at']
Reads Strava Credentials from an existing credentials file.

        Args:
            path (str, optional): Path to an existing credentials file. Defaults to None.
        
Reads Strava Credentials from an existing credentials file.
Reads Strava Credentials from an existing credentials file .
def read_creds(self, path=None):
        if path:
            self.path = path
        else:
            self.path = '.credentials.json'
        with open(self.path) as f:
            self.credentials = json.load(f)
            self.client_id = int(self.credentials['client_id'])
            self.client_secret = str(self.credentials['client_secret'])
            self.access_token = self.credentials['access_token']
            self.refresh_token = self.credentials['refresh_token']
            self.expires_at = self.credentials['expires_at']
def read_creds ( self , path = None ) : if path : self . path = path else : self . path = '.credentials.json' with open ( self . path ) as f : self . credentials = json . load ( f ) self . client_id = int ( self . credentials [ 'client_id' ] ) self . client_secret = str ( self . credentials [ 'client_secret' ] ) self . access_token = self . credentials [ 'access_token' ] self . refresh_token = self . credentials [ 'refresh_token' ] self . expires_at = self . credentials [ 'expires_at' ]
Reads Strava Credentials from an existing credentials file.
Reads Strava Credentials from an existing credentials file .
"""Reads Strava Credentials from an existing credentials file.

        Args:
            path (str, optional): Path to an existing credentials file. Defaults to None.
        """ # make filename local
self
path
Path to an existing credentials file. Defaults to None.
Path to an existing credentials file . Defaults to None .
None