-
Notifications
You must be signed in to change notification settings - Fork 948
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
rearrange flow to remove reference to creds
#1525
base: master
Are you sure you want to change the base?
Conversation
The fox looks good ! I just want to run a test to confirm. |
I try to test using import gspread
gc = gspread.oauth(
credentials_filename="credentials.json",
authorized_user_filename="authorised_user.json",
)
sht = gc.open_by_url(
"https://docs.google.com/spreadsheets/d/89fua83fu983w8fu89s38fu/"
)
ws = sht.sheet1
print(ws.get()) but I get |
the way oauth works is as follow:
later (like some hours, days laters)
Here it seems you make a request to a wrong url, the spreadsheet ID look too short and does not look like it's valid, usually it contains letters+numbers and it's case sensitive so it has a mix of lowercase + uppercase letters + numbers. I tried your code and using my url for my spreadsheet file it works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran the code and tried using received authentication token, running with new credentials etc. everything works as expected.
I don't fully know how to test this
@lavigne958 please advise :)