#Define your scopes here
SCOPE = ['https://www.googleapis.com/auth/spreadsheets.readonly']
creds = None
if os.path.exists('token.pickle'):
with open('token.pickle', 'rb') as token:
creds = pickle.load(token)
# If there are no (valid) credentials available, let the user log in.
if not creds or not creds.valid:
if creds and creds.expired and creds.refresh_token:
creds.refresh(Request())
else:
flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPE)
creds = flow.run_local_server(port=0)
# Save the credentials for the next run
with open('token.pickle', 'wb') as token:
pickle.dump(creds, token)
-
Notifications
You must be signed in to change notification settings - Fork 1
A simple wrapper for Google Sheets API v4
License
raagn08/GoogleSheetsAPI
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple wrapper for Google Sheets API v4
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published