-
Notifications
You must be signed in to change notification settings - Fork 949
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
Using oauth_from_dict not working #1524
Comments
hi ! thanks for the report :) it does seem something is going wrong here I have attempted a fix here: #1525 for now, you can try this code
let me know if that helps :) |
Can't run, I need to run it on the server, but it will prompt |
通过其它方式在服务器上执行成功了 需要先在本地执行获取authorized_userimport gspread
import json
credentials = {}
gc = gspread.oauth(credentials) 执行完成后,打开文件 C:\Users\username\AppData\Roaming\gspread\authorized_user.json import gspread
import json
credentials = {}
authorized_user = {}
gc, authorized_user = gspread.oauth_from_dict(credentials, authorized_user)
sh = gc.open_by_key('1PtyQXeetBjyJ7tSwR7XSXNXm1I.....') |
Hi please use English to reply to any issue, in case you need help you can use https://www.deepl.com/en/translator |
Executed successfully on the server through other methods You need to execute locally first to get authorized_user
After the execution is complete, open the file C:\Users\username\AppData\Roaming\gspread\authorized_user.json
|
Important: Please do not post usage questions here.
To get a quick response, please ask a question on Stack Overflow using
gspread
tag.See existing questions: https://stackoverflow.com/questions/tagged/gspread
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
The function executes normally.
Code example*
If applicable, provide a code example to help explain your problem.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment info:
Stack trace or other output that would be helpful
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: