googlecodelabs / feedback

Provide feedback to our codelabs by filing an issue here
18 stars 22 forks source link

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

Open OscarLG10 opened 7 months ago

OscarLG10 commented 7 months ago

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.