Google云端硬盘API Python实现的〜/.credentials/drive-python-quickstart.json保存在哪里? [英] Where is ~/.credentials/drive-python-quickstart.json saved for Google Drive API Python Implementation?

查看:148
本文介绍了Google云端硬盘API Python实现的〜/.credentials/drive-python-quickstart.json保存在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在此处使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆