Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update google scopes for v4 #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 1 addition & 7 deletions df2gspread/gspread2df.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@
import pandas as pd
import numpy as np

from .utils import get_credentials
from .utils import get_credentials, SCOPES
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reuse

from .gfiles import get_file_id, get_worksheet

# FIXME: clarify scopes
SCOPES = ('https://www.googleapis.com/auth/drive.metadata.readonly '
'https://www.googleapis.com/auth/drive '
'https://spreadsheets.google.com/feeds '
'https://docs.google.com/feeds')


def download(gfile, wks_name=None, col_names=False, row_names=False,
credentials=None, start_cell = 'A1'):
Expand Down
4 changes: 2 additions & 2 deletions df2gspread/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
# FIXME: clarify scopes
SCOPES = ('https://www.googleapis.com/auth/drive.metadata.readonly '
'https://www.googleapis.com/auth/drive '
'https://spreadsheets.google.com/feeds '
'https://docs.google.com/feeds')
'https://www.googleapis.com/auth/spreadsheets '
'https://www.googleapis.com/auth/docs')
Comment on lines 27 to +30
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update



def get_credentials(credentials=None, client_secret_file=CLIENT_SECRET_FILE, refresh_token=None):
Expand Down