python - Google Drive API Python 实现的 ~/.credentials/drive-python-quickstart.json 保存在哪里?

标签 python json google-api google-drive-api

我正在使用 here 中的 Google Drive 快速入门 Python API 。我想在我的 Windows 系统上找到“drive-python-quickstart.json”文件。它实际存储在哪里? Windows 中“~/.credentials/drive-python-quickstart.json”在哪里?

If modifying these scopes, delete your previously saved credentials

at ~/.credentials/drive-python-quickstart.json

SCOPES = 'https://www.googleapis.com/auth/drive.metadata.readonly'

CLIENT_SECRET_FILE = 'client_secret.json'

APPLICATION_NAME = 'Drive API Python Quickstart'

最佳答案

~指 Windows 中的位置。 例如这可以是

C:\Users\<*user-name*>\.credentials文件夹。

哪里<user-name>是您的用户名(即 C:\Users\John\.credentials )

您会发现drive-python-quickstart.json文件在那里。

关于python - Google Drive API Python 实现的 ~/.credentials/drive-python-quickstart.json 保存在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44052538/

相关文章:

python - 将 odoo 图像存储到文件系统中

python - 如何在 GAME 中检查记录是否存在

json - CouchDB 最适合动态语言吗?

google-maps - Google API获取用户的位置记录

android - 无法在 Android Studio 中解析 Symbol Google API 客户端

python - 为什么我无法检测到元组为空?

python - Django:如何引发 Http401 和 Http403 异常,如 Http404,RAISE EXCEPTION not RESPONSE

javascript - 在ng-repeat angularjs中显示数组对象

javascript - 在很少的条件下无法使用 mongoose 对数据库集合执行操作

javascript - 如何从 google API 检索用户数据?