strava_map/stravauth/stravauth.py
def write_creds(self):
        """Writes Strava authorization info to a credentials JSON"""
        
        self.credentials = self.r.json()
        self.access_token = self.credentials['access_token']

        self.credentials['client_id'] = self.client_id
        self.credentials['client_secret'] = self.client_secret

        with open('.credentials.json', 'w+') as f:
            json.dump(self.credentials, f)
Writes Strava authorization info to a credentials JSON
Writes Strava authorization info to a credentials JSON
Writes Strava authorization info to a credentials JSON
def write_creds(self):
        self.credentials = self.r.json()
        self.access_token = self.credentials['access_token']
        self.credentials['client_id'] = self.client_id
        self.credentials['client_secret'] = self.client_secret
        with open('.credentials.json', 'w+') as f:
            json.dump(self.credentials, f)
def write_creds ( self ) : self . credentials = self . r . json ( ) self . access_token = self . credentials [ 'access_token' ] self . credentials [ 'client_id' ] = self . client_id self . credentials [ 'client_secret' ] = self . client_secret with open ( '.credentials.json' , 'w+' ) as f : json . dump ( self . credentials , f )
Writes Strava authorization info to a credentials JSON
Writes Strava authorization info to a credentials JSON
"""Writes Strava authorization info to a credentials JSON"""
self