from google_auth_oauthlib.flow import InstalledAppFlow SCOPES = ['https://www.googleapis.com/auth/drive'] flow = InstalledAppFlow.from_client_secrets_file( 'client_secret_338589490139-9ocvlhs270l5hqj3sdrru14ampiacv0s.apps.googleusercontent.com.json', SCOPES ) creds = flow.run_local_server(port=8000) print("REFRESH TOKEN:") print(creds.refresh_token) print("CLIENT ID:") print(creds.client_id) print("CLIENT SECRET:") print(creds.client_secret)