my code:
import gspread oauth2client.service_account import serviceaccountcredentials scope = ['https://spreadsheets.google.com/feeds'] creds = serviceaccountcredentials.from_json_keyfile_name('drivepy-f34214ae36a2.json') client = gspread.authorize(creds) sheet = client.open_by_key('1mz9hlkd5f7ovpexox2vletfhhhpfg1ni6dl3yshyros') sht = sheet.get_all_records() print sht
results in error: httpaccesstokenrefresherror: invalid_scope: empty or missing scope not allowed.
Comments
Post a Comment