Google 드라이브에 파일을 만드는 Python 프로그램을 작성하려고합니다.OAuth API Google 드라이브 Python
이"
401. That’s an error.
Error: deleted_client
The OAuth client was deleted.
Request Details
scope=https://www.googleapis.com/auth/drive
redirect_uri=http://localhost:8080/
response_type=code
client_id=742339009631-b7rv2mnplb22rhdjb1m663aken700cfe.apps.googleusercontent.com
access_type=offline
That’s all we know."
구글이 최신 버전이 있습니까 : 나는 그것을하려고하면, 그것은
'Your browser has been opened to visit:
()
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&response_type=code&client_id=742339009631-b7rv2mnplb22rhdjb1m663aken700cfe.apps.googleusercontent.com&access_type=offline
()'
는 그런 다음 브라우저를 열고 난 다음 얻을라고? 또는 무엇이 문제입니까?
내 코드는 다음과 같습니다 Handling API Errors에서 기반
이from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
drive = GoogleDrive(gauth)
f = drive.CreateFile()
f.SetContentFile('hello.txt')
f.Upload()
print('title: %s, mimeType: %s' % (f['title'], f['mimeType']))
file_list = drive.ListFile({'q': "'root' in parents and trashed=false"}).GetList()
for file1 in file_list:
print('title: %s, id: %s' % (file1['title'], file1['id']))