feedback icon indicating copy to clipboard operation
feedback copied to clipboard

JSON file name in python script is not correct [gsuite-apis-intro]:

Open OscarLG10 opened this issue 1 year ago • 0 comments

There is a mistake in the drive_list.py:

The JSON file name is incorrect.

if not creds or creds.invalid:
    flow = client.flow_from_clientsecrets(**'client_id.json'**, SCOPES)
    creds = tools.run_flow(flow, store)

Whit the correction:

if not creds or creds.invalid:
    flow = client.flow_from_clientsecrets('client_secret.json', SCOPES)
    creds = tools.run_flow(flow, store)

Instead of naming it 'client_id.json', it should be 'client_secret.json' following the exercise instructions.

OscarLG10 avatar Mar 28 '24 21:03 OscarLG10