Google云端硬盘API Python实现的〜/.credentials/drive-python-quickstart.json保存在哪里? [英] Where is ~/.credentials/drive-python-quickstart.json saved for Google Drive API Python Implementation?
问题描述
我正在此处使用Google Drive快速入门Python API .我想在Windows系统上找到"drive-python-quickstart.json"文件.它实际存储在哪里? Windows中的〜/.credentials/drive-python-quickstart.json"在哪里?
I am using the Google Drive Quickstart Python API from here. I want to find the 'drive-python-quickstart.json' file on my windows system. Where is it actually stored? Where is '~/.credentials/drive-python-quickstart.json' in Windows?
如果要修改这些范围,请删除以前保存的凭据
在〜/.credentials/drive-python-quickstart.json
SCOPES =' https://www.googleapis.com/auth/drive. metadata.readonly '
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'
CLIENT_SECRET_FILE = 'client_secret.json'
APPLICATION_NAME ='Drive API Python快速入门'
APPLICATION_NAME = 'Drive API Python Quickstart'
推荐答案
~
指Windows中的 Root 位置.
例如,可以是
~
refers to the Root location, in Windows.
This can be for instance
C:\Users\<*user-name*>\.credentials
文件夹.
<user-name>
是您的用户名(即C:\Users\John\.credentials
)
您会在那找到drive-python-quickstart.json
文件.
这篇关于Google云端硬盘API Python实现的〜/.credentials/drive-python-quickstart.json保存在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!